You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.5 KiB
76 lines
1.5 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
|
inherit autotools gnome2-utils
|
||
9 years ago
|
|
||
6 years ago
|
DESCRIPTION="Puzzle game similar to Oxyd"
|
||
9 years ago
|
HOMEPAGE="http://www.nongnu.org/enigma/"
|
||
|
SRC_URI="mirror://sourceforge/enigma-game/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2+"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
9 years ago
|
IUSE="nls"
|
||
|
|
||
6 years ago
|
COMMON_DEPS="
|
||
|
media-libs/sdl-ttf
|
||
9 years ago
|
media-libs/libsdl[video]
|
||
|
media-libs/sdl-mixer
|
||
|
media-libs/sdl-image[jpeg,png]
|
||
|
media-libs/libpng:0=
|
||
|
sys-libs/zlib
|
||
|
net-misc/curl
|
||
|
|| ( >=dev-libs/xerces-c-3[icu] >=dev-libs/xerces-c-3[-icu,-iconv] )
|
||
|
net-libs/enet:=
|
||
6 years ago
|
nls? ( virtual/libintl )
|
||
|
"
|
||
9 years ago
|
DEPEND="${COMMON_DEPS}
|
||
6 years ago
|
sys-devel/gettext
|
||
|
"
|
||
9 years ago
|
RDEPEND="${COMMON_DEPS}
|
||
|
media-fonts/dejavu
|
||
6 years ago
|
x11-misc/xdg-utils
|
||
|
"
|
||
9 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
9 years ago
|
cp /usr/share/gettext/config.rpath .
|
||
6 years ago
|
eapply "${FILESDIR}"/${P}-build.patch \
|
||
7 years ago
|
"${FILESDIR}"/${P}-gcc6.patch
|
||
9 years ago
|
sed -i \
|
||
|
-e "s:DOCDIR:\"/usr/share/doc/${P}/html\":" \
|
||
|
src/main.cc || die
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
6 years ago
|
econf \
|
||
9 years ago
|
--with-system-enet \
|
||
|
$(use_enable nls)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
HTML_DOCS="doc/*" DOCS="ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING" \
|
||
9 years ago
|
default
|
||
|
dosym \
|
||
|
/usr/share/fonts/dejavu/DejaVuSansCondensed.ttf \
|
||
6 years ago
|
/usr/share/${PN}/fonts/DejaVuSansCondensed.ttf
|
||
9 years ago
|
dosym \
|
||
|
/usr/share/fonts/dejavu/DejaVuSans.ttf \
|
||
6 years ago
|
/usr/share/${PN}/fonts/vera_sans.ttf
|
||
9 years ago
|
doman doc/enigma.6
|
||
|
}
|
||
|
|
||
|
pkg_preinst() {
|
||
|
gnome2_icon_savelist
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|