aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher (jlec) <jlec@j-schmitz.net>2009-07-24 20:42:00 +0200
committerJustin Lecher (jlec) <jlec@j-schmitz.net>2009-07-24 21:46:58 +0200
commit825950408457edbfc61f08194d1ca6e59ff2dfec (patch)
treed85332cd762ed6fe664159b093eb222420d81fb8 /sci-chemistry/jana2000
parentchanged sys-cluster to sys-infiniband in DEPEND (diff)
downloadsci-825950408457edbfc61f08194d1ca6e59ff2dfec.tar.gz
sci-825950408457edbfc61f08194d1ca6e59ff2dfec.tar.bz2
sci-825950408457edbfc61f08194d1ca6e59ff2dfec.zip
jana200 for Hannes Krüger
Diffstat (limited to 'sci-chemistry/jana2000')
-rw-r--r--sci-chemistry/jana2000/ChangeLog13
-rw-r--r--sci-chemistry/jana2000/Manifest6
-rw-r--r--sci-chemistry/jana2000/files/20071218-g77.diff63
-rw-r--r--sci-chemistry/jana2000/files/20071218-gfortran.diff63
-rw-r--r--sci-chemistry/jana2000/jana2000-20071218.ebuild61
-rw-r--r--sci-chemistry/jana2000/metadata.xml8
6 files changed, 214 insertions, 0 deletions
diff --git a/sci-chemistry/jana2000/ChangeLog b/sci-chemistry/jana2000/ChangeLog
new file mode 100644
index 000000000..009aee6cf
--- /dev/null
+++ b/sci-chemistry/jana2000/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sci-chemistry/jana2000
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*jana2000-20071218 (24 Jul 2009)
+
+ 24 Jul 2009; Justin Lecher (jlec) <jlec@j-schmitz.net>
+ +files/20071218-g77.diff, +jana2000-20071218.ebuild,
+ +files/20071218-gfortran.diff, +metadata.xml:
+ Initial add see bug 80464
+ first version from Jan Marten Simons, updated by Hannes Krüger and
+ revised by me
+
diff --git a/sci-chemistry/jana2000/Manifest b/sci-chemistry/jana2000/Manifest
new file mode 100644
index 000000000..19810e358
--- /dev/null
+++ b/sci-chemistry/jana2000/Manifest
@@ -0,0 +1,6 @@
+AUX 20071218-g77.diff 2497 RMD160 481534a1839611b9b21975afb4d8fa60cc7c182d SHA1 64531e7eda145e08b4251d7a3bf6284b4f6c5226 SHA256 9d115c0a216ebda5b69c45f7df6f7f3c26e953ee0baf59d39aff36aadd6e394f
+AUX 20071218-gfortran.diff 2560 RMD160 cb22047fa61f67568c481c467145c0c57bf2f755 SHA1 aeeb8aaeff08a5b7c30e698f8b8cc3a1e44a3cf8 SHA256 283bee1581ef8bcfe3c288e7249815a57f920d77ea85589824cf32e1a5c792ec
+DIST jana2000.tar.gz 3261905 RMD160 dd61f0f65da066b61b91d3ad69d045705a894e93 SHA1 0a0851e8340bb3f37ee881fa94a581a19d04d8ea SHA256 4b1369889882d4a9b3331c870a37d76ec9aeee94a9959581b08dbb1f8f4bf71a
+EBUILD jana2000-20071218.ebuild 1556 RMD160 35301f529d272feceea8fc548815edc6088d5616 SHA1 92508b4f3220ea07bfff018d23a6caf16a9a5418 SHA256 ac6274ca4903e0e3c0e9eba6c5728c947b26f6a1fbd72bdbcf3cfeedf334af91
+MISC ChangeLog 432 RMD160 bc5d89739087866f73c0740a4e391cbddd74c6cd SHA1 d0c1c101d9e1ccbde81f6fae6d0575ac9d2c3427 SHA256 a3a1c1af6653e0e68903cf7d33dd86e23c94654870802f3457a3792d839e88f0
+MISC metadata.xml 215 RMD160 bc9c07aa91f2f175542244e4e4522a73558210a1 SHA1 facb283386de1c0b6b938cdcd4dde04d1694298b SHA256 13f32353652adbd3d934d41381cfc2cacc9e1127c508cebc73806cc1026ee80c
diff --git a/sci-chemistry/jana2000/files/20071218-g77.diff b/sci-chemistry/jana2000/files/20071218-g77.diff
new file mode 100644
index 000000000..3b055a879
--- /dev/null
+++ b/sci-chemistry/jana2000/files/20071218-g77.diff
@@ -0,0 +1,63 @@
+--- Makefile 2007-11-15 11:29:30.000000000 +0100
++++ Makefile.g77 2009-07-21 00:13:17.000000000 +0200
+@@ -427,28 +427,28 @@
+ ## ******** start of editable section ********
+ #
+ # ## The command calling Fortran compiler (without options)
+-# FCOM = g77
++ FCOM = g77
+ # ## Fortran compiler options
+-# FOPTS = -O2 $(WARN)
++ FOPTS = $(CFLAGS) $(WARN)
+ # ## path to the C include files
+-# INCLUDE =
++ INCLUDE =
+ # ## C compiler options
+-# COPTS = -O2 $(WARN) $(INCLUDE)
++ COPTS = $(CFLAGS) $(WARN) $(INCLUDE)
+ # ## libraries to link
+-# LINKLIBS = -L/usr/X11/lib -L/usr/X11R5/lib -L/usr/X11R6/lib \
+-# -L/usr/X11R6/lib64 -lX11
++ LINKLIBS = -L/usr/X11/lib -L/usr/X11R5/lib -L/usr/X11R6/lib \
++ -L/usr/X11R6/lib64 -lX11
+ # ## RANLIB is not used, but cannot be empty
+-# RANLIB = echo
++ RANLIB = echo
+ # ## Fortran compiler adds underscore to each module
+-# UNDERSCORES = define
++ UNDERSCORES = define
+ # ## Fortran compiler changes the source code to lowercase
+-# LOWER_CASE = define
++ LOWER_CASE = define
+ #
+-# FORCE = # please don't change this setting
+-# PREPARE = prepare # please don't change this setting
+-# PROG = jana2000 # please don't change this setting
+-# CN11= a# # please don't change this setting
+-# INFO = LINUX - g77 compiler # please don't change this setting
++ FORCE = # please don't change this setting
++ PREPARE = prepare # please don't change this setting
++ PROG = jana2000 # please don't change this setting
++ CN11= a# # please don't change this setting
++ INFO = LINUX - g77 compiler # please don't change this setting
+ #
+ # # ******** end of editable section ********
+
+@@ -814,7 +814,7 @@
+ cp $(SPECIDIR)/MainUnit.c .; \
+ $(CCOM) $(COPTS) -c MainUnit.c
+ MAKEEXE = $(EXESPOL); \
+- $(FCOM) $(FOPTS) -o $$NAME MainUnit.o $$NAME.o $(LIBS) $(LINKLIBS); \
++ $(FCOM) $(FOPTS) $(LDFLAGS) -o $$NAME MainUnit.o $$NAME.o $(LIBS) $(LINKLIBS); \
+ $(RMFILES); \
+ chmod 755 $$NAME
+ MAKEJ2000 = echo ' '; \
+@@ -837,7 +837,7 @@
+ ($(WRITE_FHEAD)) > $(FHEAD); \
+ cp $(SPECIDIR)/MainUnit.c $(SPECIDIR)/*.h $(FGPATH)/*.h .; \
+ $(CCOM) $(COPTS) -c MainUnit.c; \
+- $(FCOM) $(FOPTS) -o $$NAME MainUnit.o $(OBJLIST) \
++ $(FCOM) $(FOPTS) $(LDFLAGS) -o $$NAME MainUnit.o $(OBJLIST) \
+ $(LIBS) $(LINKLIBS); \
+ $(RMFILES); \
+ chmod 755 $$NAME; echo ' '
diff --git a/sci-chemistry/jana2000/files/20071218-gfortran.diff b/sci-chemistry/jana2000/files/20071218-gfortran.diff
new file mode 100644
index 000000000..d6cf590fa
--- /dev/null
+++ b/sci-chemistry/jana2000/files/20071218-gfortran.diff
@@ -0,0 +1,63 @@
+--- Makefile 2007-11-15 11:29:30.000000000 +0100
++++ Makefile.gfortran 2009-07-21 00:12:38.000000000 +0200
+@@ -463,28 +463,28 @@
+ # ## The command calling Fortran compiler (without options)
+ # ## gfortran is a successor of g77. It is part of gcc starting
+ # ## from version 4
+-# FCOM = gfortran
++ FCOM = gfortran
+ # ## Fortran compiler options
+-# FOPTS = -O2 $(WARN)
++ FOPTS = $(CFLAGS) $(WARN)
+ # ## path to the C include files
+-# INCLUDE =
++ INCLUDE =
+ # ## C compiler options
+-# COPTS = -O2 $(WARN) $(INCLUDE)
++ COPTS = $(CFLAGS) $(WARN) $(INCLUDE)
+ # ## libraries to link
+-# LINKLIBS = -L/usr/X11/lib -L/usr/X11R5/lib -L/usr/X11R6/lib \
+-# -L/usr/X11R6/lib64 -lX11
++ LINKLIBS = -L/usr/X11/lib -L/usr/X11R5/lib -L/usr/X11R6/lib \
++ -L/usr/X11R6/lib64 -lX11
+ # ## RANLIB is not used, but cannot be empty
+-# RANLIB = echo
++ RANLIB = echo
+ # ## Fortran compiler adds underscore to each module
+-# UNDERSCORES = define
++ UNDERSCORES = define
+ # ## Fortran compiler changes the source code to lowercase
+-# LOWER_CASE = define
++ LOWER_CASE = define
+ #
+-# FORCE = # please don't change this setting
+-# PREPARE = prepare # please don't change this setting
+-# PROG = jana2000 # please don't change this setting
+-# CN11= a# # please don't change this setting
+-# INFO = LINUX - gfortran compiler # please don't change this setting
++ FORCE = # please don't change this setting
++ PREPARE = prepare # please don't change this setting
++ PROG = jana2000 # please don't change this setting
++ CN11= a# # please don't change this setting
++ INFO = LINUX - gfortran compiler # please don't change this setting
+ #
+ ## ******** end of editable section ********
+
+@@ -814,7 +814,7 @@
+ cp $(SPECIDIR)/MainUnit.c .; \
+ $(CCOM) $(COPTS) -c MainUnit.c
+ MAKEEXE = $(EXESPOL); \
+- $(FCOM) $(FOPTS) -o $$NAME MainUnit.o $$NAME.o $(LIBS) $(LINKLIBS); \
++ $(FCOM) $(FOPTS) $(LDFLAGS) -o $$NAME MainUnit.o $$NAME.o $(LIBS) $(LINKLIBS); \
+ $(RMFILES); \
+ chmod 755 $$NAME
+ MAKEJ2000 = echo ' '; \
+@@ -837,7 +837,7 @@
+ ($(WRITE_FHEAD)) > $(FHEAD); \
+ cp $(SPECIDIR)/MainUnit.c $(SPECIDIR)/*.h $(FGPATH)/*.h .; \
+ $(CCOM) $(COPTS) -c MainUnit.c; \
+- $(FCOM) $(FOPTS) -o $$NAME MainUnit.o $(OBJLIST) \
++ $(FCOM) $(FOPTS) $(LDFLAGS) -o $$NAME MainUnit.o $(OBJLIST) \
+ $(LIBS) $(LINKLIBS); \
+ $(RMFILES); \
+ chmod 755 $$NAME; echo ' '
diff --git a/sci-chemistry/jana2000/jana2000-20071218.ebuild b/sci-chemistry/jana2000/jana2000-20071218.ebuild
new file mode 100644
index 000000000..1a868f953
--- /dev/null
+++ b/sci-chemistry/jana2000/jana2000-20071218.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:$
+
+FORTRAN="g77 gfortran"
+
+inherit eutils fortran toolchain-funcs
+
+DESCRIPTION="the crystallographic computing system"
+HOMEPAGE="http://www-xray.fzu.cz/jana/jana.html"
+SRC_URI="ftp://ftp.fzu.cz/pub/cryst/beta2000/${PN}.tar.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+ sys-apps/gawk"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ einfo "setting up the Makefile for ${FORTRANC}"
+
+ if [[ ${FORTRANC} == gfortran ]]; then
+ epatch "${FILESDIR}/${PV}-gfortran.diff"
+ elif [[ ${FORTRANC} == g77 ]]; then
+ epatch "${FILESDIR}/${PV}-g77.diff"
+ fi
+}
+
+src_compile() {
+ emake -j1 CCOM="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ dobin jana2000 || die "dobin failed"
+ dodoc README.TXT || die "dodoc failed"
+
+ insinto /usr/share/${PN}/source
+ doins -r source/{fg,data} || die "doins failed"
+
+ echo "JANADIR=/usr/share/${PN}" >"${T}/jana2000env"
+ newenvd "${T}/jana2000env" 99jana2000env || die "newenvd failed"
+}
+
+pkg_postinst() {
+ elog "The Development of Jana2000 is stopped."
+ elog "The successor Jana2006 is not yet available for unix/linux platforms"
+ elog "check at http://www-xray.fzu.cz/jana/jana.html for news"
+ elog "please cite Jana2000 as follows:"
+ elog " Petricek, V., Dusek, M. and Palatinus, L. (2000):"
+ elog " Jana2006. The crystallographic computing system."
+ elog " Institute of Physics, Praha, Czech Republic."
+}
diff --git a/sci-chemistry/jana2000/metadata.xml b/sci-chemistry/jana2000/metadata.xml
new file mode 100644
index 000000000..efb490d78
--- /dev/null
+++ b/sci-chemistry/jana2000/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</herd>
+<maintainer>
+ <email>sci@gentoo.org</email>
+</maintainer>
+</pkgmetadata>