forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cyphesis-0.6.2-r1.ebuild
62 lines (51 loc) · 1.22 KB
/
cyphesis-0.6.2-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit toolchain-funcs autotools python-single-r1 eutils
DESCRIPTION="WorldForge server running small games"
HOMEPAGE="http://worldforge.org/index.php/components/cyphesis/"
SRC_URI="mirror://sourceforge/worldforge/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="test"
RDEPEND="${PYTHON_DEPS}
dev-db/postgresql:=
>=dev-games/mercator-0.3.3
>=dev-games/wfmath-1.0.1
dev-libs/libgcrypt:0
dev-libs/libsigc++:2
sys-libs/ncurses:0
sys-libs/readline:0
>=media-libs/atlas-c++-0.6.3
>=media-libs/skstream-0.3.9
>=media-libs/varconf-0.6.4
"
DEPEND="${RDEPEND}
>=dev-libs/boost-1.40
dev-libs/libxml2
virtual/pkgconfig"
pkg_setup() {
python-single-r1_pkg_setup
}
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-makefile.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf --localstatedir=/var
}
src_compile() {
emake AR="$(tc-getAR)"
}
src_install() {
emake DESTDIR="${D}" confbackupdir="/usr/share/doc/${PF}/conf" install
dodoc AUTHORS ChangeLog FIXME NEWS README THANKS TODO
}