summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-07-18 08:57:09 +0000
committerJustin Lecher <jlec@gentoo.org>2010-07-18 08:57:09 +0000
commit8afdf0548c8208d354053d71f97801be53318f0f (patch)
treec004198d47fee8f135857816a3265fed2f06e67d /sci-chemistry
parentqa: formatting (diff)
downloadhistorical-8afdf0548c8208d354053d71f97801be53318f0f.tar.gz
historical-8afdf0548c8208d354053d71f97801be53318f0f.tar.bz2
historical-8afdf0548c8208d354053d71f97801be53318f0f.zip
New Addition
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/prekin/ChangeLog11
-rw-r--r--sci-chemistry/prekin/Manifest15
-rw-r--r--sci-chemistry/prekin/files/6.51.081122-Makefile.patch41
-rw-r--r--sci-chemistry/prekin/metadata.xml8
-rw-r--r--sci-chemistry/prekin/prekin-6.51.081122.ebuild52
5 files changed, 127 insertions, 0 deletions
diff --git a/sci-chemistry/prekin/ChangeLog b/sci-chemistry/prekin/ChangeLog
new file mode 100644
index 000000000000..47e68d5f385a
--- /dev/null
+++ b/sci-chemistry/prekin/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sci-chemistry/prekin
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/prekin/ChangeLog,v 1.1 2010/07/18 08:57:09 jlec Exp $
+
+*prekin-6.51.081122 (18 Jul 2010)
+
+ 18 Jul 2010; Justin Lecher <jlec@gentoo.org>
+ +files/6.51.081122-Makefile.patch, +prekin-6.51.081122.ebuild,
+ +metadata.xml:
+ New Addition
+
diff --git a/sci-chemistry/prekin/Manifest b/sci-chemistry/prekin/Manifest
new file mode 100644
index 000000000000..83982a63bfa0
--- /dev/null
+++ b/sci-chemistry/prekin/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 6.51.081122-Makefile.patch 1456 RMD160 2274cc1f803bb38ea5d1cba0f28b583859e7520d SHA1 7fb4e5b1f8e33e211dced62b779e5c09034e5857 SHA256 7f1b2d39007683b4ecb391ec5bd711ca32115f361dcfc0aa05b25fe52817bb4c
+DIST prekin.6.51.081122.src.tgz 350756 RMD160 a48df8558ee98396492851b0f1b73723cb4b9559 SHA1 7b3c1da210c26fd9740ecba4de02e985efdbbe61 SHA256 74a771cd8be000df13ac908f23a2e945e8bd3590884c6bc6ccff75804cc0fb7a
+EBUILD prekin-6.51.081122.ebuild 1157 RMD160 531d8d0ccd1820d9439fe185f2e9b49bbfd1d1cd SHA1 c93f8a3603c62c4ab6b0c1cbe7a4eb16af5db9de SHA256 5a72b0c1b851e264883ec9689bb45f6e1a05b5981e5a4ff5a9886df3615e0c15
+MISC ChangeLog 391 RMD160 5e0f7e6b054e2732d9f4a8627abaffbbeb18364f SHA1 2e5f4f482dba0558f5b4cf677d9a8cc5ff0cfc3e SHA256 9a9be35acd3bf3238b8c97ab3ac99cbaf4021f60e719ed65aa8a50c1837e533e
+MISC metadata.xml 223 RMD160 7d8c63fa814e8ba780a059e37d2c9db5f2cb4a83 SHA1 3bdbbc98b27729db0c2895c7e611ac974a946d54 SHA256 f2b57b258a607b1f88bd6353285a8ab044a6417b2b433183fddecbf5ee445853
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.15 (GNU/Linux)
+
+iEYEARECAAYFAkxCwe8ACgkQgAnW8HDreRb65QCggE505rkV/bPR55AYzvK6ER3g
+IlgAni4yEzd0tLcHF3nQecV6AbA80kS3
+=yBBM
+-----END PGP SIGNATURE-----
diff --git a/sci-chemistry/prekin/files/6.51.081122-Makefile.patch b/sci-chemistry/prekin/files/6.51.081122-Makefile.patch
new file mode 100644
index 000000000000..5fd9d00d9b06
--- /dev/null
+++ b/sci-chemistry/prekin/files/6.51.081122-Makefile.patch
@@ -0,0 +1,41 @@
+diff --git a/Makefile.linux b/Makefile.linux
+index 65a021a..3daacd8 100755
+--- a/Makefile.linux
++++ b/Makefile.linux
+@@ -1,15 +1,15 @@
+ #
+-CFLAGS = -I/usr/X11R6/include
++CFLAGS += -I/usr/X11R6/include
+
+ ifeq ($(MAKECMDGOALS),debug)
+ CFLAGS = -g -I/usr/X11R6/include
+ endif
+
+-LIBS = -L/usr/lib -L/usr/X11R6/lib -lXmu -lXm -lXt -lSM -lICE -lXext -lX11
++LIBS = -L/usr/GENTOOLIBDIR -L/usr/X11R6/lib -lXmu -lXm -lXt -lSM -lICE -lXext -lX11
+
+ ifeq ($(MAKECMDGOALS),nogui)
+-CFLAGS = -D NOGUI -I/usr/X11R6/include
+-LIBS = -L/usr/lib -L/usr/X11R6/lib -lXmu -lXt -lSM -lICE -lXext -lX11
++CFLAGS += -D NOGUI -I/usr/X11R6/include
++LIBS = -L/usr/GENTOOLIBDIR -L/usr/X11R6/lib -lXmu -lXt -lSM -lICE -lXext -lX11
+ endif
+
+ FIN = -lm -pthread #for RH9.0, ok for RH7.3 & RH8.0
+@@ -26,13 +26,13 @@ OBJS = PKINANGL.o PKINCRTL.o PKINCSBS.o PKINCSUB.o PKINCOUT.o PKINMENU.o PKINROT
+ # Commands specific to clients created by this Makefile
+
+ prekin: $(OBJS)
+- cc -o prekin $(CFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
++ cc -o prekin $(CFLAGS) $(LDFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
+
+ debug: $(OBJS)
+- cc -o prekin $(CFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
++ cc -o prekin $(CFLAGS) $(LDFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
+
+ nogui: $(OBJS)
+- cc -o prekin $(CFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
++ cc -o prekin $(CFLAGS) $(LDFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
+
+ clean:
+ rm *.o
diff --git a/sci-chemistry/prekin/metadata.xml b/sci-chemistry/prekin/metadata.xml
new file mode 100644
index 000000000000..9a1f70b1fd6f
--- /dev/null
+++ b/sci-chemistry/prekin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-chemistry</herd>
+<use>
+ <flag name='gui'>build gui support</flag>
+</use>
+</pkgmetadata>
diff --git a/sci-chemistry/prekin/prekin-6.51.081122.ebuild b/sci-chemistry/prekin/prekin-6.51.081122.ebuild
new file mode 100644
index 000000000000..efe0dabb7ea2
--- /dev/null
+++ b/sci-chemistry/prekin/prekin-6.51.081122.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/prekin/prekin-6.51.081122.ebuild,v 1.1 2010/07/18 08:57:09 jlec Exp $
+
+EAPI="2"
+
+inherit toolchain-funcs eutils multilib
+
+MY_P="${PN}.${PV}"
+
+DESCRIPTION="Prepares molecular kinemages (input files for Mage & KiNG) from PDB-format coordinate files"
+HOMEPAGE="http://kinemage.biochem.duke.edu/software/prekin.php"
+SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/prekin/${MY_P}.src.tgz"
+
+LICENSE="richardson"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="X"
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXt
+ X? ( x11-libs/openmotif )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-Makefile.patch
+ sed \
+ -e 's:cc:$(CC):g' \
+ -e "s:GENTOOLIBDIR:$(get_libdir):g" \
+ "${S}"/Makefile.linux > Makefile
+}
+
+src_compile() {
+ local mytarget
+
+ if use X; then
+ mytarget="${PN}"
+ else
+ mytarget="nogui"
+ fi
+
+ emake \
+ CC="$(tc-getCC)" \
+ ${mytarget} || die "make failed"
+}
+
+src_install() {
+ dobin "${S}"/prekin || die "dobin failed"
+}