summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreroen <eroen@occam.eroen.eu>2014-08-11 01:48:57 +0200
committereroen <eroen@occam.eroen.eu>2014-08-11 02:03:46 +0200
commite6d5d0e037a47596b281157004c0d1dd7feb85c1 (patch)
treee99dd40f98ef12acbfd95a7d1312c418f34a11cc /dev-libs
parentdfhack-9999 - updatings (diff)
downloaderoen-e6d5d0e037a47596b281157004c0d1dd7feb85c1.tar.gz
eroen-e6d5d0e037a47596b281157004c0d1dd7feb85c1.tar.bz2
eroen-e6d5d0e037a47596b281157004c0d1dd7feb85c1.zip
libgraphics - enable egg
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libgraphics/libgraphics-40.06.ebuild10
-rw-r--r--dev-libs/libgraphics/metadata.xml2
2 files changed, 10 insertions, 2 deletions
diff --git a/dev-libs/libgraphics/libgraphics-40.06.ebuild b/dev-libs/libgraphics/libgraphics-40.06.ebuild
index f7d30e0..e3dec13 100644
--- a/dev-libs/libgraphics/libgraphics-40.06.ebuild
+++ b/dev-libs/libgraphics/libgraphics-40.06.ebuild
@@ -18,6 +18,7 @@ SRC_URI="http://www.bay12games.com/dwarves/df_${PV//./_}_linux.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64" # ~x86
+IUSE="egg"
HDEPEND="virtual/pkgconfig"
LIBDEPEND="
@@ -31,6 +32,7 @@ LIBDEPEND="
sys-libs/ncurses[abi_x86_32]
sys-libs/zlib[abi_x86_32]
x11-libs/gtk+:2[abi_x86_32]
+ egg? ( games-util/dfhack[egg] )
"
RDEPEND="${LIBDEPEND}"
DEPEND="${HDEPEND}
@@ -49,7 +51,13 @@ src_prepare() {
rm g_src/{find_files.cpp,music_and_sound_fmodex.cpp,music_and_sound_fmodex.h} \
g_src/template.h || die
rm libs/{Dwarf_Fortress,libgcc_s.so.1,libgraphics.so,libstdc++.so.6} || die
- cp "${FILESDIR}/SConscript" "g_src/SConscript" || die
+
+ if use egg; then
+ epatch "${FILESDIR}/0001-Add-something-eggy.patch"
+ cp "${FILESDIR}/SConscript-egg" "g_src/SConscript" || die
+ else
+ cp "${FILESDIR}/SConscript" "g_src/SConscript" || die
+ fi
cp "${FILESDIR}/SConstruct" "SConstruct" || die
}
diff --git a/dev-libs/libgraphics/metadata.xml b/dev-libs/libgraphics/metadata.xml
index 6d87773..14af51c 100644
--- a/dev-libs/libgraphics/metadata.xml
+++ b/dev-libs/libgraphics/metadata.xml
@@ -2,7 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<use>
- <flag name="egg">Enable hooks for and link against libegg from games-util/dfhack.</flag>
+ <flag name="egg">Enable hooks for and link against libegg from <pkg>games-util/dfhack</pkg>.</flag>
</use>
<longdescription lang="en">
</longdescription>