summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-10 14:12:20 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-10 14:12:20 +0000
commit413cfe36e2a2fcaac5a069595bd010c60402f06e (patch)
tree93639fc7ed09bc1d0039122b9b864a2920c81628
parentRemoved old ebuilds. (diff)
downloadhistorical-413cfe36e2a2fcaac5a069595bd010c60402f06e.tar.gz
historical-413cfe36e2a2fcaac5a069595bd010c60402f06e.tar.bz2
historical-413cfe36e2a2fcaac5a069595bd010c60402f06e.zip
use the built_with_use func for detecintg X support in imlib2
-rw-r--r--media-libs/giblib/Manifest9
-rw-r--r--media-libs/giblib/files/imlib-x-test.c3
-rw-r--r--media-libs/giblib/giblib-1.2.4.ebuild17
3 files changed, 13 insertions, 16 deletions
diff --git a/media-libs/giblib/Manifest b/media-libs/giblib/Manifest
index 924e185ace3e..f4f44e7cd986 100644
--- a/media-libs/giblib/Manifest
+++ b/media-libs/giblib/Manifest
@@ -3,13 +3,12 @@ Hash: SHA1
MD5 cab6efc72140e48af2e7bf3d603c6780 ChangeLog 2032
MD5 6b36114042766b590a929750635602fe metadata.xml 640
-MD5 a060d8bb0a642344131c4b0317069ad2 giblib-1.2.4.ebuild 848
-MD5 bd2c6f3969e5aa806ef43f96c23f4ace files/imlib-x-test.c 84
+MD5 42aae5c5168b66954313eb83f4fbbe13 giblib-1.2.4.ebuild 820
MD5 6ddf4a6071a44007ba8be97ab21ebfd4 files/digest-giblib-1.2.4 64
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.9.14 (GNU/Linux)
-iD8DBQFB3yZuroRuSHgZdywRAgJmAKCFUUDtVrsrdRy9fQhmwuHjJxw0XwCff/MV
-W5oYxXBbKMNzinCLFoY8Gos=
-=YqhD
+iD8DBQFB4o1broRuSHgZdywRAif/AJ9m/7oPjs2IlGzX76yVdugI/ME9iwCeIRRk
+Hqy750+POe/nxJKbIuQokA0=
+=P+Ih
-----END PGP SIGNATURE-----
diff --git a/media-libs/giblib/files/imlib-x-test.c b/media-libs/giblib/files/imlib-x-test.c
deleted file mode 100644
index ce8efa5de945..000000000000
--- a/media-libs/giblib/files/imlib-x-test.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#include <X11/Xlib.h>
-#include <Imlib2.h>
-int main(){imlib_context_set_display(0);}
diff --git a/media-libs/giblib/giblib-1.2.4.ebuild b/media-libs/giblib/giblib-1.2.4.ebuild
index 793c3c29ce5a..025cd05cddfa 100644
--- a/media-libs/giblib/giblib-1.2.4.ebuild
+++ b/media-libs/giblib/giblib-1.2.4.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/giblib/giblib-1.2.4.ebuild,v 1.5 2005/01/08 00:16:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/giblib/giblib-1.2.4.ebuild,v 1.6 2005/01/10 14:12:20 vapier Exp $
-inherit toolchain-funcs
+inherit toolchain-funcs eutils
DESCRIPTION="Giblib, graphics library"
HOMEPAGE="http://www.linuxbrit.co.uk/giblib/"
@@ -14,18 +14,19 @@ KEYWORDS="alpha amd64 ~hppa ppc ppc64 sparc x86"
IUSE=""
DEPEND=">=media-libs/imlib2-1.0.3
+ virtual/x11
>=media-libs/freetype-2.0"
-src_compile() {
- $(tc-getCC) ${FILESDIR}/imlib-x-test.c `imlib2-config --libs` `imlib2-config --cflags` \
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ built_with_use media-libs/imlib2 X \
|| die "You need to re-emerge Imlib2 with USE=X"
-
- econf || die
- emake || die
+ epunt_cxx
}
src_install() {
make DESTDIR="${D}" install || die
- rm -rf ${D}/usr/doc
+ rm -r "${D}"/usr/doc
dodoc README AUTHORS ChangeLog TODO
}