summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2002-12-17 04:13:56 +0000
committerMike Frysinger <vapier@gentoo.org>2002-12-17 04:13:56 +0000
commit1d2895a11b1c2d6729c25537d2c076efed4acba3 (patch)
tree37b058e3561ea772d148385e62b1d61265acf32a /dev-lang/pm3
parent~alpha changes (diff)
downloadgentoo-2-1d2895a11b1c2d6729c25537d2c076efed4acba3.tar.gz
gentoo-2-1d2895a11b1c2d6729c25537d2c076efed4acba3.tar.bz2
gentoo-2-1d2895a11b1c2d6729c25537d2c076efed4acba3.zip
made more things optional
Diffstat (limited to 'dev-lang/pm3')
-rw-r--r--dev-lang/pm3/pm3-1.1.15.ebuild39
1 files changed, 27 insertions, 12 deletions
diff --git a/dev-lang/pm3/pm3-1.1.15.ebuild b/dev-lang/pm3/pm3-1.1.15.ebuild
index 401798ce6145..0544980346c9 100644
--- a/dev-lang/pm3/pm3-1.1.15.ebuild
+++ b/dev-lang/pm3/pm3-1.1.15.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/pm3/pm3-1.1.15.ebuild,v 1.1 2002/12/17 00:09:56 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/pm3/pm3-1.1.15.ebuild,v 1.2 2002/12/17 04:13:56 vapier Exp $
M3_TARGET="LINUXLIBC6"
MY_P="${PN}-src-${PV}"
@@ -9,14 +9,15 @@ HOMEPAGE="http://www.elegosoft.com/pm3/"
SRC_URI="ftp://www.elegosoft.com/pub/pm3/${P}-${M3_TARGET}-boot.tgz
ftp://www.elegosoft.com/pub/pm3/${MY_P}.tar.bz2"
-LICENSE=""
+LICENSE="LGPL-2.1 GPL-2"
SLOT="0"
KEYWORDS="x86"
-IUSE=""
+IUSE="opengl X openmotif"
-DEPEND="dev-util/yacc
- app-editors/emacs"
-#RDEPEND=""
+DEPEND="dev-util/yacc"
+RDEPEND="opengl? ( virtual/opengl )
+ X? ( virtual/x11 )
+ motif? ( x11-libs/openmotif )"
S=${WORKDIR}/${PN}
@@ -25,23 +26,37 @@ src_unpack() {
cd ${S}
unpack ${P}-${M3_TARGET}-boot.tgz
patch -p1 < ${FILESDIR}/${P}.patch || die
+
+ echo 'M3CC_MAKE = ["make", "BISON=yacc"]' >> m3config/src/${M3_TARGET}
+ echo 'RANLIB = ["ranlib"]' >> m3config/src/${M3_TARGET}
+ export LD_LIBRARY_PATH="${S}/EXPORTS/usr/lib/m3/${M3_TARGET}/:${LD_LIBRARY_PATH}"
}
src_compile() {
mv ${PN}-${M3_TARGET}/* .
- echo 'M3CC_MAKE = ["make", "BISON=yacc"]' >> m3config/src/${M3_TARGET}
- echo 'RANLIB = ["ranlib"]' >> m3config/src/${M3_TARGET}
- export LD_LIBRARY_PATH="${S}/EXPORTS/usr/lib/m3/${M3_TARGET}/:${LD_LIBRARY_PATH}"
+ [ -n "`best_version emacs`" ] || echo SKIP_GNUEMACS=\"\" >> m3config/src/COMMON
+ if [ `use opengl` ] ; then
+ cp m3config/src/COMMON m3config/src/COMMON.old
+ sed -e 's:PLATFORM_SUPPORTS_OPENGL:%:' m3config/src/COMMON > m3config/src/COMMON.old
+ fi
+ if [ `use X` ] ; then
+ cp m3config/src/COMMON m3config/src/COMMON.old
+ sed -e 's:PLATFORM_SUPPORTS_X:%:' m3config/src/COMMON > m3config/src/COMMON.old
+ fi
+ if [ `use motif` ] ; then
+ cp m3config/src/COMMON m3config/src/COMMON.old
+ sed -e 's:PLATFORM_SUPPORTS_MOTIF:%:' m3config/src/COMMON > m3config/src/COMMON.old
+ fi
make || die
}
src_install() {
- cd EXPORTS
+ cd EXPORTS || die
mkdir usr/share
- mv usr/{man,doc,share}
- mv * ${D}/
+ mv usr/{man,doc,share} || die
+ mv * ${D}/ || die
prepall
dodir /etc/env.d