summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2008-01-05 10:17:03 +0000
committerDenis Dupeyron <calchan@gentoo.org>2008-01-05 10:17:03 +0000
commitd377e7b6f90c410de96dbe48aef784af3202ecff (patch)
treeb44d69a6eb910c98450623ea811379883ed3c380 /dev-embedded
parentamd64 stable wrt #203857 (diff)
downloadgentoo-2-d377e7b6f90c410de96dbe48aef784af3202ecff.tar.gz
gentoo-2-d377e7b6f90c410de96dbe48aef784af3202ecff.tar.bz2
gentoo-2-d377e7b6f90c410de96dbe48aef784af3202ecff.zip
Added check on USE=gtk for dev-embedded/gpsim to fix bug #204375.
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/gpsim-lcd/ChangeLog7
-rw-r--r--dev-embedded/gpsim-lcd/gpsim-lcd-0.2.9.ebuild21
2 files changed, 18 insertions, 10 deletions
diff --git a/dev-embedded/gpsim-lcd/ChangeLog b/dev-embedded/gpsim-lcd/ChangeLog
index fb5dc1736e43..6a77d3ed20ee 100644
--- a/dev-embedded/gpsim-lcd/ChangeLog
+++ b/dev-embedded/gpsim-lcd/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-embedded/gpsim-lcd
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/gpsim-lcd/ChangeLog,v 1.19 2007/06/07 10:48:36 calchan Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/gpsim-lcd/ChangeLog,v 1.20 2008/01/05 10:17:03 calchan Exp $
+
+ 05 Jan 2008; Denis Dupeyron <calchan@gentoo.org> gpsim-lcd-0.2.9.ebuild:
+ Added check on USE=gtk for dev-embedded/gpsim to fix bug #204375.
07 Jun 2007; Denis Dupeyron <calchan@gentoo.org>
-files/gpsim-lcd-0.1.1-display_fix.patch,
diff --git a/dev-embedded/gpsim-lcd/gpsim-lcd-0.2.9.ebuild b/dev-embedded/gpsim-lcd/gpsim-lcd-0.2.9.ebuild
index cfb32c12905e..b090af86f226 100644
--- a/dev-embedded/gpsim-lcd/gpsim-lcd-0.2.9.ebuild
+++ b/dev-embedded/gpsim-lcd/gpsim-lcd-0.2.9.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/gpsim-lcd/gpsim-lcd-0.2.9.ebuild,v 1.3 2007/06/07 10:26:25 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/gpsim-lcd/gpsim-lcd-0.2.9.ebuild,v 1.4 2008/01/05 10:17:03 calchan Exp $
WANT_AUTOCONF=latest
WANT_AUTOMAKE=latest
@@ -19,10 +19,15 @@ SLOT="0"
KEYWORDS="amd64 ppc64 x86"
IUSE=""
-DEPEND=">=dev-embedded/gpsim-0.22.0"
+DEPEND=">=dev-embedded/gpsim-0.22.0
+ =x11-libs/gtk+-2*"
S=${WORKDIR}/${MY_P}
+pkg_setup() {
+ built_with_use dev-embedded/gpsim gtk || die "dev-embedded/gpsim must be built with USE=gtk"
+}
+
src_unpack() {
unpack ${A}
cd "${S}"
@@ -35,10 +40,10 @@ src_compile() {
}
src_install() {
- emake DESTDIR=${D} install || die
+ emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog INSTALL README
- cp -pPR ${S}/examples ${D}/usr/share/doc/${PF}
- find ${D}/usr/share/doc/${PF} -name 'Makefile*' -exec rm -f \{} \;
- chmod -R 644 ${D}/usr/share/doc/${PF}
- chmod 755 ${D}/usr/share/doc/${PF}/examples
+ cp -pPR "${S}"/examples "${D}"/usr/share/doc/${PF}
+ find "${D}"/usr/share/doc/${PF} -name 'Makefile*' -exec rm -f \{} \;
+ chmod -R 644 "${D}"/usr/share/doc/${PF}
+ chmod 755 "${D}"/usr/share/doc/${PF}/examples
}