summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <mrpouet@gentoo.org>2009-08-26 18:57:11 +0200
committerRomain Perier <mrpouet@gentoo.org>2009-08-26 18:57:11 +0200
commita4b5af7f6d598f45016b8a66838e6d47fe0318a0 (patch)
tree91a023dbc43ffe1eff167838d79f5e4233702b31 /dev-games
parentprofiles/ : Restore directory useful and necessary for repoman checks, otherw... (diff)
downloadgamerlay-a4b5af7f6d598f45016b8a66838e6d47fe0318a0.tar.gz
gamerlay-a4b5af7f6d598f45016b8a66838e6d47fe0318a0.tar.bz2
gamerlay-a4b5af7f6d598f45016b8a66838e6d47fe0318a0.zip
dev-games/clanlib:
- Drop quotes for MY_P and S - Changes LICENSE to "as-is" - Add examples USE flag - Install examples stuffs using doins -r - Add some || die statement into src_install() and add missing message to existing die
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/clanlib/Manifest4
-rw-r--r--dev-games/clanlib/clanlib-2.0.3.ebuild29
-rw-r--r--dev-games/clanlib/metadata.xml4
3 files changed, 24 insertions, 13 deletions
diff --git a/dev-games/clanlib/Manifest b/dev-games/clanlib/Manifest
index 9d45228..c48672a 100644
--- a/dev-games/clanlib/Manifest
+++ b/dev-games/clanlib/Manifest
@@ -1,3 +1,3 @@
DIST ClanLib-2.0.3.tgz 21638906 RMD160 4002a8bf1c2e28b045d161958ff1ece4ca9174fb SHA1 5dc91c507020f1fc35d7035775e4d181d6b0e888 SHA256 dff2cd720bf1c40cd9d7e4f8bc9ce20bbc3ebb843bf9917080360d82ffd79206
-EBUILD clanlib-2.0.3.ebuild 1819 RMD160 f720a11ebf69c22a56307f6a3e759071ab179c7d SHA1 7628a2ce58b7510ab535f28dfa3c2a1e6ba5f59b SHA256 0f4df74c61565614c486d1e4436c98ba13a28645fe6ce8577d0b17b513fbebe2
-MISC metadata.xml 161 RMD160 734c72757bdba2e93d5c7cfa946fd9eb69e01681 SHA1 e721608e30cdca8dd809c1024687fe4887c49293 SHA256 5102a957a119374da719ca711f473e89fd4183d4e91e86f59e2fc4dce7e607dc
+EBUILD clanlib-2.0.3.ebuild 2022 RMD160 6b782ea9fc18c9e83f9dbd737fcf6787fa21ba45 SHA1 518f0af0b5048c45fb286ae3582b288a5bdb05cd SHA256 df8a881e0e80fcecd654c036e774ca2849b0c09536cc832437c9aba4ddc4d5dd
+MISC metadata.xml 298 RMD160 37899c968bbcc2049f9a402adba46491c10b3aa7 SHA1 047a1ae8b9d5a76810e52b9904e78ad0dbcc2be2 SHA256 e58ae1ad5c9732c70a28b8d8de14d4820900e5e4de54e4d29e594d779ae52482
diff --git a/dev-games/clanlib/clanlib-2.0.3.ebuild b/dev-games/clanlib/clanlib-2.0.3.ebuild
index 2aeaebc..f44bb3e 100644
--- a/dev-games/clanlib/clanlib-2.0.3.ebuild
+++ b/dev-games/clanlib/clanlib-2.0.3.ebuild
@@ -1,20 +1,19 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
-MY_P="ClanLib-${PV}"
-inherit flag-o-matic eutils
+MY_P=ClanLib-${PV}
DESCRIPTION="multi-platform game development library"
HOMEPAGE="http://www.clanlib.org/"
SRC_URI="http://clanlib.org/download/releases-${PV:0:3}/${MY_P}.tgz"
-LICENSE="ZLIB"
+LICENSE="as-is"
SLOT="0.8"
KEYWORDS="~amd64 ~x86"
-IUSE="opengl sdl vorbis doc mikmod ipv6 network pcre sqlite gui "
+IUSE="doc examples gui ipv6 mikmod network opengl pcre sdl sqlite vorbis"
# opengl keyword does not drop the GL/GLU requirement.
# Autoconf files need to be fixed
@@ -22,7 +21,7 @@ RDEPEND="
media-libs/libpng
media-libs/jpeg
media-libs/freetype
- opengl? (
+ opengl? (
virtual/opengl
virtual/glu
)
@@ -41,7 +40,7 @@ RDEPEND="
DEPEND="${RDEPEND}
x11-proto/xf86vidmodeproto"
-S="${WORKDIR}/${MY_P}"
+S=${WORKDIR}/${MY_P}
src_configure() {
econf \
@@ -64,10 +63,18 @@ src_configure() {
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
if use doc ; then
- dodir /usr/share/doc/${PF}/html
- mv "${D}"/usr/share/doc/clanlib/* "${D}"/usr/share/doc/${PF}/html/ || die
+ dodir /usr/share/doc/${PF}/html || die "dodir failed"
+ mv "${D}"/usr/share/doc/clanlib/* "${D}"/usr/share/doc/${PF}/html/ \
+ || die "mv failed"
rm -rf "${D}"/usr/share/doc/clanlib
- cp -r Examples Resources "${D}"/usr/share/doc/${PF}/ || die
fi
- dodoc CODING_STYLE CREDITS NEWS PATCHES README* INSTALL.linux
+
+ #FIXME: What about the Resources subdirectory into tarball ?
+ # it's not documentation or examples at all, but seems to be extras themes...
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r Examples || die "dobin -r failed"
+ fi
+
+ dodoc CODING_STYLE CREDITS README* || die "dodoc failed"
}
diff --git a/dev-games/clanlib/metadata.xml b/dev-games/clanlib/metadata.xml
index 4a5a466..87809bf 100644
--- a/dev-games/clanlib/metadata.xml
+++ b/dev-games/clanlib/metadata.xml
@@ -2,4 +2,8 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>playboys</herd>
+<use>
+ <flag name='network'>Build within the ClanNetwork module</flag>
+ <flag name='gui'>Build within the ClanGUI module</flag>
+</use>
</pkgmetadata>