summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-05-20 11:40:28 +0000
committerJustin Lecher <jlec@gentoo.org>2010-05-20 11:40:28 +0000
commit1fcb8cac87cb3010296545b1ffbc9957e3a5a5f8 (patch)
treea174c756ad15ace3f611b1a51700a4b51ae9ec0b /sci-chemistry/gopenmol
parentBump (diff)
downloadhistorical-1fcb8cac87cb3010296545b1ffbc9957e3a5a5f8.tar.gz
historical-1fcb8cac87cb3010296545b1ffbc9957e3a5a5f8.tar.bz2
historical-1fcb8cac87cb3010296545b1ffbc9957e3a5a5f8.zip
Python ABI fix #316173, keyworded for amd64, place things at the right position, fix startup issue #249508
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry/gopenmol')
-rw-r--r--sci-chemistry/gopenmol/ChangeLog11
-rw-r--r--sci-chemistry/gopenmol/Manifest14
-rw-r--r--sci-chemistry/gopenmol/files/3.00-multilib.patch104
-rw-r--r--sci-chemistry/gopenmol/gopenmol-3.00-r2.ebuild98
4 files changed, 224 insertions, 3 deletions
diff --git a/sci-chemistry/gopenmol/ChangeLog b/sci-chemistry/gopenmol/ChangeLog
index 6f81c4c1bc7a..1dd25708e3fa 100644
--- a/sci-chemistry/gopenmol/ChangeLog
+++ b/sci-chemistry/gopenmol/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-chemistry/gopenmol
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gopenmol/ChangeLog,v 1.8 2007/07/22 07:22:46 dberkholz Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gopenmol/ChangeLog,v 1.9 2010/05/20 11:40:28 jlec Exp $
+
+*gopenmol-3.00-r2 (20 May 2010)
+
+ 20 May 2010; Justin Lecher <jlec@gentoo.org> +files/3.00-multilib.patch,
+ +gopenmol-3.00-r2.ebuild:
+ Python ABI fix #316173, keyworded for amd64, place things at the right
+ position, fix startup issue #249508
22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>;
gopenmol-3.00-r1.ebuild:
diff --git a/sci-chemistry/gopenmol/Manifest b/sci-chemistry/gopenmol/Manifest
index b35dd6663ac7..9538b72eafd6 100644
--- a/sci-chemistry/gopenmol/Manifest
+++ b/sci-chemistry/gopenmol/Manifest
@@ -1,5 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX 3.00-include-config-for-plugins.patch 383 RMD160 d086101593c41bc9a046e41bf35fbf7dcbd2cc5f SHA1 0277405809f2e5b76ecaa520de11ec2e43f4df90 SHA256 1683ce6661bc32eebe7263752ac176a96eaf4f6cc70260dd1d41ff8952e33d3d
+AUX 3.00-multilib.patch 3745 RMD160 1113a0d44a0edb8e81f5ada89bec2ac0f7fc4a21 SHA1 620e158bf54b75d818c67277017562499f723068 SHA256 95388ce63c362c6573c49b3c7d5427ea4d18f6c949db3d4b0bbcf8fabe826125
DIST gopenmol-3.00-linux.tar.gz 29615195 RMD160 8ed743925bf2c8583228fa19d8afbdc37c0af8de SHA1 8ab41ba3ae8cf2366bb1c2e03f9e23d5a5a72ce2 SHA256 314494a751f65c28d015fee854d2ee347fecbca6ccf31bb7e04db7eda6a16a23
EBUILD gopenmol-3.00-r1.ebuild 1408 RMD160 4e4acf5cc244900387a8cba393bb8b32fcff5dd4 SHA1 23e8bd14843cf034bc3aa54e5388cad72272c7cb SHA256 bfe394a91d35e24b8740937ce585bfeff67abd47a6f4c90808ce29e4f493a81a
-MISC ChangeLog 1471 RMD160 b3c92f4291f6338019b4fe34932874ad183d3432 SHA1 c47590fb766116a4b4fa3d580b64f1af7631571d SHA256 91a0747b2e6ba8af2fe2af0ea80b5a4728564deb3f492219166a2b035e03c6ca
+EBUILD gopenmol-3.00-r2.ebuild 2378 RMD160 db01d30ae3e1861a68c20d60a73d0c25c3b0d72d SHA1 7433d7004197a2c2cc1a1f299fd7e02fb1110f85 SHA256 ef8c8302c7468a5ff5d55dbda80b1a067aa482f529eeab8936fe5a38b333d08e
+MISC ChangeLog 1714 RMD160 70aa866b4c489f4127721792a0443e211c0b2430 SHA1 71086eb0c5b04ae8cf103ee95297a07d6f2a582e SHA256 c3c33c9076023fa6558821a4f040d56892330237ad0fb6fb87117df85b030655
MISC metadata.xml 166 RMD160 4452298fd03e7c9395d1182bfe69d60a14144af6 SHA1 cb0b513473c0348f4f6f6cd9a132e4884155fddb SHA256 84c92b49702daf95eace8d2765215cbd8650da4ef776f9f700b5ce3785dec852
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iEYEARECAAYFAkv1H9UACgkQgAnW8HDreRapRQCePdgUPKmOAzKGKktdUeRVdfjD
+UpcAoJIe3J1y2yRGJ8ElIgmCpojQeZGa
+=saxI
+-----END PGP SIGNATURE-----
diff --git a/sci-chemistry/gopenmol/files/3.00-multilib.patch b/sci-chemistry/gopenmol/files/3.00-multilib.patch
new file mode 100644
index 000000000000..9ca263808622
--- /dev/null
+++ b/sci-chemistry/gopenmol/files/3.00-multilib.patch
@@ -0,0 +1,104 @@
+diff --git a/src/config.mk.ac b/src/config.mk.ac
+index b1061d9..374bc77 100755
+--- a/src/config.mk.ac
++++ b/src/config.mk.ac
+@@ -18,7 +18,7 @@ gomroot = $(libdir)/$(gomsubdir)
+ gomdataroot = $(datadir)/$(gomsubdir)
+ gombindir = $(gomroot)/bin
+ gomincdir = $(includedir)/$(gomsubdir)
+-gomlibdir = $(gomroot)/bin
++gomlibdir = $(gomroot)/GENTOOLIBDIR
+ # Tcl/Tk entries.
+ TCL_LIBRARY = @TCL_LIBRARY@
+ TK_LIBRARY = @TK_LIBRARY@
+diff --git a/src/plugins/Makefile b/src/plugins/Makefile
+index bb9af64..cf8a97d 100755
+--- a/src/plugins/Makefile
++++ b/src/plugins/Makefile
+@@ -22,7 +22,7 @@ all install install-local uninstall: FORCE
+ build compile clean clean-libs clean-objs: FORCE
+ -@for dir in *; do \
+ if test -f "$$dir/Makefile"; then \
+- ( cd "$$dir" && $(MAKE) $(MFLAGS) $@ ) ;\
++ ( cd "$$dir" && $(MAKE) $(MFLAGS) $@ ) || exit 1;\
+ fi ;\
+ done
+
+diff --git a/src/plugins/config.mk.ac b/src/plugins/config.mk.ac
+index 03e3f6b..eb30ea8 100755
+--- a/src/plugins/config.mk.ac
++++ b/src/plugins/config.mk.ac
+@@ -11,7 +11,7 @@ gomdataroot = ${datadir}/${gomsubdir}
+ gombindir = ${gomroot}/bin
+ gomincdir = ${gomsrcdir}/include/gomlib
+ #INS gomincdir = ${includedir}/${gomsubdir}
+-gomlibdir = ${gomroot}/bin
++gomlibdir = ${gomroot}/GENTOOLIBDIR
+ gomsrcdir = @abs_top_srcdir@
+ gombltdir = @abs_top_builddir@
+ #INS gomsrcdir = ${gomroot}/src
+diff --git a/src/plugins/rules.mk b/src/plugins/rules.mk
+index d41ed47..da133c6 100755
+--- a/src/plugins/rules.mk
++++ b/src/plugins/rules.mk
+@@ -43,12 +43,12 @@ $(LIBRARY): $(libdeps)
+ @$(RM) alldeps.dT
+
+ link-CC: FORCE
+- $(GOM_LINK_CC) $(PLUG_CFLAGS) -o $(LIBRARY) $(OBJECTS) \
+- $(PLUG_LDFLAGS) $(PLUG_LIBS) $(GOM_LINKFLAGS)
++ $(GOM_LINK_CC) $(GOM_LINKFLAGS) $(PLUG_CFLAGS) -o $(LIBRARY) $(OBJECTS) \
++ $(PLUG_LDFLAGS) $(PLUG_LIBS)
+
+ link-CXX: FORCE
+- $(GOM_LINK_CXX) $(PLUG_CXXFLAGS) -o $(LIBRARY) $(OBJECTS) \
+- $(PLUG_LDFLAGS) $(PLUG_LIBS) $(GOM_LINKFLAGS)
++ $(GOM_LINK_CXX) $(GOM_LINKFLAGS) $(PLUG_CXXFLAGS) -o $(LIBRARY) $(OBJECTS) \
++ $(PLUG_LDFLAGS) $(PLUG_LIBS)
+
+ # Rule to compile the source files.
+ # First make:
+diff --git a/src/unix/make/install.mk b/src/unix/make/install.mk
+index 3018946..98c061a 100755
+--- a/src/unix/make/install.mk
++++ b/src/unix/make/install.mk
+@@ -36,7 +36,7 @@ mkinstalldirs: mkinstalldirs-local mkinstalldirs-shared FORCE ;
+ mkinstalldirs-local: FORCE
+ $(MKDIR_P) '$(gomroot)' || test -d '$(gomroot)'
+ @$(set_show); set -e; \
+- for dir in bin src/plugins src/unix; do \
++ for dir in bin lib src/plugins src/unix; do \
+ dir='$(gomroot)'/$$dir; \
+ $$show $(MKDIR_P) "$$dir"; \
+ $(MKDIR_P) "$$dir" || test -d "$$dir"; \
+diff --git a/src/unix/make/utility.mk.ac b/src/unix/make/utility.mk.ac
+index 21ad59d..ee25ac7 100755
+--- a/src/unix/make/utility.mk.ac
++++ b/src/unix/make/utility.mk.ac
+@@ -47,8 +47,7 @@ BINARIES_F = ambera2b$(EXEEXT) \
+ xmol2bamber$(EXEEXT) \
+ xplor2charmm$(EXEEXT) \
+ gridasc2plt$(EXEEXT) \
+- gridbin2plt$(EXEEXT) \
+- icon8$(EXEEXT)
++ gridbin2plt$(EXEEXT)
+
+ BINARIES_JAR = xvibs.jar
+
+@@ -76,13 +75,13 @@ $(OBJECTS_C):
+ $(CC) -c $? $(CPPFLAGS) $(CFLAGS)
+
+ $(BINARIES_C):
+- $(CC) -o $@ $? $(CPPFLAGS) $(CFLAGS) $(STD_LIBS) $(LDFLAGS)
++ $(CC) $(LDFLAGS) -o $@ $? $(CPPFLAGS) $(CFLAGS) $(STD_LIBS)
+
+ $(BINARIES_CXX):
+- $(CXX) -o $@ $? $(CPPFLAGS) $(CXXFLAGS) $(STD_LIBS) $(LDFLAGS)
++ $(CXX) $(LDFLAGS) -o $@ $? $(CPPFLAGS) $(CXXFLAGS) $(STD_LIBS)
+
+ $(BINARIES_F):
+- $(F77) -o $@ $? $(FFLAGS) $(STD_LIBS) $(LDFLAGS)
++ $(F77) $(LDFLAGS) -o $@ $? $(FFLAGS) $(STD_LIBS)
+
+ $(BINARIES_JAR):
+ cp $? $@
diff --git a/sci-chemistry/gopenmol/gopenmol-3.00-r2.ebuild b/sci-chemistry/gopenmol/gopenmol-3.00-r2.ebuild
new file mode 100644
index 000000000000..938b1b90db50
--- /dev/null
+++ b/sci-chemistry/gopenmol/gopenmol-3.00-r2.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gopenmol/gopenmol-3.00-r2.ebuild,v 1.1 2010/05/20 11:40:28 jlec Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="2"
+
+inherit eutils multilib prefix python
+
+DESCRIPTION="Tool for the visualization and analysis of molecular structures"
+HOMEPAGE="http://www.csc.fi/gopenmol"
+SRC_URI="${HOMEPAGE}/distribute/${P}-linux.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ =dev-lang/tk-8.4*
+ dev-tcltk/bwidget
+ media-libs/jpeg
+ virtual/glut
+ virtual/opengl
+ x11-libs/libICE
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXxf86vm"
+
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/gOpenMol-${PV}/src"
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-include-config-for-plugins.patch
+ epatch "${FILESDIR}"/${PV}-multilib.patch
+
+ sed \
+ -e "s:GENTOOLIBDIR:$(get_libdir):g" \
+ -i config.mk.ac plugins/config.mk.ac
+ sed "/GOM_TEMP/s:^.*$:GOM_TEMP=\"${EPREFIX}/tmp/:g" -i ../environment.txt || die
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ # Plugins are not built by default
+ cd ${S}/plugins
+ emake || die "emake plugins failed"
+
+ # Utilities are not built by default
+ cd ${S}/utility
+ emake || die "emake utility failed"
+}
+
+src_install() {
+ einstall || die "einstall failed"
+
+ cd ${S}/plugins
+ einstall || die "einstall plugins failed"
+
+ cd ${S}/utility
+ einstall || die "einstall utility failed"
+
+ dosed /usr/bin/rungOpenMol
+
+ dosym ../$(get_libdir)/gOpenMol-${PV}/bin/${PN} /usr/bin/${PN}
+
+ dodoc "${ED}"/usr/share/gOpenMol-${PV}/{docs/*,README*} || die
+
+ dodir /usr/share/doc/${PF}/html
+ mv -T "${ED}"/usr/share/gOpenMol-${PV}/help "${ED}"/usr/share/doc/${PF}/html || die
+ mv "${ED}"/usr/share/gOpenMol-${PV}/utility "${ED}"/usr/share/doc/${PF}/html || die
+
+ rm -rf \
+ "${ED}"/usr/$(get_libdir)/gOpenMol-${PV}/{src,install} \
+ "${ED}"/usr/share/gOpenMol-${PV}/{docs,README*,COPYRIGHT} || die
+
+ cat >> "${T}"/20${PN} <<- EOF
+ GOM_ROOT="${EPREFIX}"/usr/$(get_libdir)/gOpenMol-${PV}/
+ GOM_DATA="${EPREFIX}"/usr/share/gOpenMol-${PV}/data
+ GOM_HELP="${EPREFIX}"/usr/share/doc/${PVR}/html
+ GOM_DEMO="${EPREFIX}"/usr/share/gOpenMol-${PV}/demo
+ EOF
+
+ doenvd "${T}"/20${PN}
+}
+
+pkg_postinst() {
+ einfo "Run gOpenMol using the rungOpenMol script."
+}