diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2006-02-11 18:05:27 +0000 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2006-02-11 18:05:27 +0000 |
commit | 9b90f76f1bcbbc98f67ac75b97b79ee90181550a (patch) | |
tree | 4a4554f10c11c6dd10f31a673139d318e8f004e1 /dev-scheme/drscheme | |
parent | new version for fftw, needs some additional testing (diff) | |
download | gentoo-2-9b90f76f1bcbbc98f67ac75b97b79ee90181550a.tar.gz gentoo-2-9b90f76f1bcbbc98f67ac75b97b79ee90181550a.tar.bz2 gentoo-2-9b90f76f1bcbbc98f67ac75b97b79ee90181550a.zip |
New ebuild for version 301.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'dev-scheme/drscheme')
-rw-r--r-- | dev-scheme/drscheme/ChangeLog | 13 | ||||
-rw-r--r-- | dev-scheme/drscheme/Manifest | 15 | ||||
-rw-r--r-- | dev-scheme/drscheme/drscheme-301.ebuild | 76 | ||||
-rw-r--r-- | dev-scheme/drscheme/files/digest-drscheme-301 | 3 | ||||
-rw-r--r-- | dev-scheme/drscheme/files/drscheme-301-fPIC.patch | 64 |
5 files changed, 167 insertions, 4 deletions
diff --git a/dev-scheme/drscheme/ChangeLog b/dev-scheme/drscheme/ChangeLog index dfdccdfebc5e..c578642e5e39 100644 --- a/dev-scheme/drscheme/ChangeLog +++ b/dev-scheme/drscheme/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for dev-scheme/drscheme # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/drscheme/ChangeLog,v 1.6 2006/02/10 21:56:31 chutzpah Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/drscheme/ChangeLog,v 1.7 2006/02/11 18:05:27 chutzpah Exp $ + +*drscheme-301 (11 Feb 2006) + + 11 Feb 2006; Patrick McLean <chutzpah@gentoo.org> + +files/drscheme-301-fPIC.patch, +drscheme-301.ebuild: + New version, ebuild has been almost completely rewritten. Fixed up + dependencies for modular X. Made generated scripts point to the right + installation directory. Install into /usr/lib/drscheme rather than in + /usr/share/drscheme. Added USE flags for cairo, png, jpeg, opengl and perl. + Added fPIC patch to get it to build on amd64, though on my machine it just + segfaults, so not keywording for amd64 yet. 10 Feb 2006; Patrick McLean <chutzpah@gentoo.org> metadata.xml: I'm taking over maintainership of this package. I will be posting an updated diff --git a/dev-scheme/drscheme/Manifest b/dev-scheme/drscheme/Manifest index d4cd7be3807f..d52dbcb43d33 100644 --- a/dev-scheme/drscheme/Manifest +++ b/dev-scheme/drscheme/Manifest @@ -1,6 +1,6 @@ -MD5 408d14c70e0102cd6918bfbd37036a18 ChangeLog 2454 -RMD160 70362a49b46829ebc2e9b8f675aa899afd78cb59 ChangeLog 2454 -SHA256 0c97ab180ad547f963640bbba9015fe60e4482d3c19bfc0fe9f898522828d132 ChangeLog 2454 +MD5 3129ed86240eb610a5e1ebcb14a1a1d7 ChangeLog 3006 +RMD160 101a68c73f71b893fd432d33f15cb107b5ef95b0 ChangeLog 3006 +SHA256 c8f78cccbeef19e087146582975d6270a1cfd6862e41d9b87738b4da2563019b ChangeLog 3006 MD5 76b00b5669ae37ae6545582f9589fbe3 drscheme-205.ebuild 1472 RMD160 c4e10b28106138cf8ba38c4b9990440538450235 drscheme-205.ebuild 1472 SHA256 1cc867c9175f07395fb80678ceab2fa42a2b90b839a5a0ecb2cfa659d44f91a5 drscheme-205.ebuild 1472 @@ -10,6 +10,9 @@ SHA256 c7ef95ae108f5ba05d42427925d174463760fcc123d007f8ca758dab70cb5d1c drscheme MD5 3d92826258ba3b383f061e0e7922500f drscheme-209.ebuild 1376 RMD160 7b55ab38b3523ab401c4b0a643ac80746fa0c80c drscheme-209.ebuild 1376 SHA256 93af1fdb02af4effce7292fadd5d14e046f08495fc5ef8b3b072148152fa6d7b drscheme-209.ebuild 1376 +MD5 2afebe8badd0a0d6424263c605b5aa12 drscheme-301.ebuild 1806 +RMD160 9ff375418a0ee06e48a80ffa6dbb8caf4e5d2bff drscheme-301.ebuild 1806 +SHA256 093dfa9bebbcda23ed655e9eaca5f0325db573502214fde1e97dbe0d0d7fa327 drscheme-301.ebuild 1806 MD5 4d4722b75525ca0a33d08693a7680a44 files/digest-drscheme-205 66 RMD160 9a046867acc3d355731c14733bc2a6ad854afc0c files/digest-drscheme-205 66 SHA256 cb59635390e70b6e0856d2861e29781ad60fc8323ff61b40a6bec075b675f3cc files/digest-drscheme-205 66 @@ -19,6 +22,12 @@ SHA256 7434aadc4052f73fff57688afacdb4df74418d8b9311b8c3e98638e7d6415802 files/di MD5 391fa586fc831a62811beb21e1f0603e files/digest-drscheme-209 67 RMD160 017f56fe815768a8cedb750fbbedfabeba5e8166 files/digest-drscheme-209 67 SHA256 eb92751612d082ec48bcd72e89f8cf7b2a650ef8165ee4d99cdc3da1297663ef files/digest-drscheme-209 67 +MD5 b00dc440a5ec2cd08f98f34f827a25b7 files/digest-drscheme-301 247 +RMD160 d308beb49ef1f2b187f28a033f86ed182934d152 files/digest-drscheme-301 247 +SHA256 971b6397eabbbeb6d20c88970180e362041d3895b09009211f2f444215b97b01 files/digest-drscheme-301 247 +MD5 4ada17dfe65cb9defc23a29d23eb3c2d files/drscheme-301-fPIC.patch 2802 +RMD160 51d04864d5b1127f50ece3a1bb87f14adb1a8fb9 files/drscheme-301-fPIC.patch 2802 +SHA256 e9ddebf2fcd4b1b37209a04d9b4e29799bf70c8cc6732c916be8e323840e9e7a files/drscheme-301-fPIC.patch 2802 MD5 274a7900f799811ad11e1a827bb4b23e metadata.xml 694 RMD160 ab738064eeb10e5a01c1f2a9040da48b5f68d244 metadata.xml 694 SHA256 b63c1d1ae1adc89c062f612f797abf9e0933fc67725d301558f27832bd8c875d metadata.xml 694 diff --git a/dev-scheme/drscheme/drscheme-301.ebuild b/dev-scheme/drscheme/drscheme-301.ebuild new file mode 100644 index 000000000000..d7dcfced37f2 --- /dev/null +++ b/dev-scheme/drscheme/drscheme-301.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/drscheme/drscheme-301.ebuild,v 1.1 2006/02/11 18:05:27 chutzpah Exp $ + +inherit eutils flag-o-matic multilib + +DESCRIPTION="DrScheme programming environment. Includes mzscheme." +HOMEPAGE="http://www.plt-scheme.org/software/drscheme/" +SRC_URI="http://download.plt-scheme.org/bundles/${PV}/plt/plt-${PV}-src-unix.tgz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="cairo jpeg opengl perl png" + +DEPEND="|| ( ( x11-libs/libICE + x11-libs/libSM + x11-libs/libXaw + x11-libs/libXft + ) + virtual/x11 + ) + media-libs/freetype + media-libs/fontconfig + cairo? ( x11-libs/cairo ) + jpeg? ( media-libs/jpeg ) + opengl? ( virtual/opengl ) + png? ( media-libs/libpng )" + +S=${WORKDIR}/plt/src + +src_unpack() { + unpack ${A} + cd ${WORKDIR}/plt + + epatch ${FILESDIR}/${P}-fPIC.patch +} + +src_compile() { + + econf --enable-mred \ + $(use_enable opengl gl) \ + $(use_enable png libpng) \ + $(use_enable jpeg libjpeg) \ + $(use_enable perl) \ + $(use_enable cairo) \ + --prefix=/usr/$(get_libdir)/${PN}/ || die "econf failed" + + make || die +} + +src_install() { + cd ${S} + + sed -ie 's/cp -p/cp/' Makefile + + dodir /usr/$(get_libdir) + make prefix=${D}/usr/$(get_libdir)/${PN} install || die "make install failed" + + dodoc README + cd ${D}/usr/$(get_libdir)/${PN}/man/man1 + doman * + rm -rf ${D}/usr/$(get_libdir)/${PN}/man + + # create symlinks for all the executables + dodir /usr/bin + cd ${D}/usr/$(get_libdir)/${PN}/bin + for EXE in *; do + + # fix paths in generated shell scripts + file -b "${EXE}" | grep -q "Bourne shell" && \ + sed -i 's/PLTHOME=".*"/PLTHOME="\/usr\/'$(get_libdir)'\/'${PN}'"/' "${EXE}" + + dosym "/usr/$(get_libdir)/${PN}/bin/${EXE}" "/usr/bin/${EXE}" + done +} diff --git a/dev-scheme/drscheme/files/digest-drscheme-301 b/dev-scheme/drscheme/files/digest-drscheme-301 new file mode 100644 index 000000000000..379f868629cc --- /dev/null +++ b/dev-scheme/drscheme/files/digest-drscheme-301 @@ -0,0 +1,3 @@ +MD5 61f43172460bb297edcf3e0c3599a5e2 plt-301-src-unix.tgz 12706538 +RMD160 35a7a927bf24e7c5c331551ad72c32c9b7d4d742 plt-301-src-unix.tgz 12706538 +SHA256 c914cd2f4ccf1ca706738ee9e11df75632a71cab2a9d70fb292b4ebad410dd52 plt-301-src-unix.tgz 12706538 diff --git a/dev-scheme/drscheme/files/drscheme-301-fPIC.patch b/dev-scheme/drscheme/files/drscheme-301-fPIC.patch new file mode 100644 index 000000000000..adb0a7e262f7 --- /dev/null +++ b/dev-scheme/drscheme/files/drscheme-301-fPIC.patch @@ -0,0 +1,64 @@ +diff -uNr plt-orig/collects/make/setup-extension.ss plt/collects/make/setup-extension.ss +--- plt-orig/collects/make/setup-extension.ss 2006-01-11 04:15:52.000000000 -0500 ++++ plt/collects/make/setup-extension.ss 2006-02-10 13:02:05.000000000 -0500 +@@ -191,7 +191,7 @@ + current-extension-linker-flags + (if is-win? + null +- (list (format "-L~a/lib" (path->string sys-path)))) ++ (list "-fPIC" (format "-L~a/lib" (path->string sys-path)))) + + ;; Add libs for Windows: + (with-new-flags +diff -uNr plt-orig/src/foreign/Makefile.in plt/src/foreign/Makefile.in +--- plt-orig/src/foreign/Makefile.in 2006-01-11 04:15:20.000000000 -0500 ++++ plt/src/foreign/Makefile.in 2006-02-10 13:03:07.000000000 -0500 +@@ -3,7 +3,7 @@ + srcdir = @srcdir@ + builddir = @builddir@ + CC = @CC@ +-CFLAGS = @CFLAGS@ @COMPFLAGS@ @PREFLAGS@ @PROFFLAGS@ @OPTIONS@ @MZOPTIONS@ \ ++CFLAGS = @CFLAGS@ @COMPFLAGS@ @PREFLAGS@ @PROFFLAGS@ @OPTIONS@ @MZOPTIONS@ -fPIC \ + -I$(builddir)/../mzscheme \ + -I$(srcdir)/../mzscheme/include -I$(srcdir)/../mzscheme/src \ + -Igcc/libffi/include +diff -uNr plt-orig/src/mzscheme/dynsrc/Makefile.in plt/src/mzscheme/dynsrc/Makefile.in +--- plt-orig/src/mzscheme/dynsrc/Makefile.in 2006-01-11 04:15:36.000000000 -0500 ++++ plt/src/mzscheme/dynsrc/Makefile.in 2006-02-10 13:03:07.000000000 -0500 +@@ -16,10 +16,10 @@ + CFLAGS = @CFLAGS@ @COMPFLAGS@ @PREFLAGS@ -I$(builddir)/.. -I$(srcdir)/../include -I$(srcdir)/../src @MZOPTIONS@ + + dynlib: +- $(MAKE) ../mzdyn.o ++ $(MAKE) CFLAGS="$(CFLAGS) -fPIC" ../mzdyn.o + + dynlib3m: +- $(MAKE) ../mzdyn3m.o ++ $(MAKE) CFLAGS="$(CFLAGS) -fPIC" ../mzdyn3m.o + + dynexample: + $(MAKE) ../dynexmpl.so +diff -uNr plt-orig/src/mzscheme/gc/Makefile.in plt/src/mzscheme/gc/Makefile.in +--- plt-orig/src/mzscheme/gc/Makefile.in 2006-01-11 04:15:36.000000000 -0500 ++++ plt/src/mzscheme/gc/Makefile.in 2006-02-10 13:03:07.000000000 -0500 +@@ -10,7 +10,7 @@ + # and runs some tests of collector and cords. Does not add cords or + # c++ interface to gc.a + # cord/de - builds dumb editor based on cords. +-ABI_FLAG= ++ABI_FLAG= -fPIC + CC= @CC@ $(ABI_FLAG) + CXX= @CXX@ $(ABI_FLAG) + AS= @AS@ $(ABI_FLAG) +diff -uNr plt-orig/src/mzscheme/gc2/Makefile.in plt/src/mzscheme/gc2/Makefile.in +--- plt-orig/src/mzscheme/gc2/Makefile.in 2006-01-11 04:15:37.000000000 -0500 ++++ plt/src/mzscheme/gc2/Makefile.in 2006-02-10 13:03:07.000000000 -0500 +@@ -13,7 +13,7 @@ + ARFLAGS = @ARFLAGS@ + RANLIB = @RANLIB@ + +-CPPFLAGS = @PREFLAGS@ @OPTIONS@ @GC2OPTIONS@ @MZOPTIONS@ -I$(builddir)/.. -I$(srcdir)/../include ++CPPFLAGS = @PREFLAGS@ -fPIC @OPTIONS@ @GC2OPTIONS@ @MZOPTIONS@ -I$(builddir)/.. -I$(srcdir)/../include + CFLAGS = @CFLAGS@ $(CPPFLAGS) @COMPFLAGS@ @PROFFLAGS@ + LIBS = @LIBS@ + |