summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2015-09-24 15:04:28 +0200
committerTiziano Müller <dev-zero@gentoo.org>2015-09-24 15:04:28 +0200
commit3e275019126eb1f40b448c5d59068dc9c4441216 (patch)
treecb0276d25da2239af6a110fa9f86318f778cba87
parentdev-util/abi-dumper: initial commit (diff)
downloaddev-zero-3e275019126eb1f40b448c5d59068dc9c4441216.tar.gz
dev-zero-3e275019126eb1f40b448c5d59068dc9c4441216.tar.bz2
dev-zero-3e275019126eb1f40b448c5d59068dc9c4441216.zip
sci-chemistry/xcrysden: initial commit, ebuild written by me
-rw-r--r--profiles/categories1
-rw-r--r--sci-chemistry/xcrysden/Manifest1
-rw-r--r--sci-chemistry/xcrysden/files/1.5.60-makefile.patch61
-rw-r--r--sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild46
4 files changed, 109 insertions, 0 deletions
diff --git a/profiles/categories b/profiles/categories
index e149727..88fc39e 100644
--- a/profiles/categories
+++ b/profiles/categories
@@ -84,3 +84,4 @@ dev-nodejs
x11-terms
sys-process
app-i18n
+sci-chemistry
diff --git a/sci-chemistry/xcrysden/Manifest b/sci-chemistry/xcrysden/Manifest
new file mode 100644
index 0000000..123647d
--- /dev/null
+++ b/sci-chemistry/xcrysden/Manifest
@@ -0,0 +1 @@
+DIST xcrysden-1.5.60.tar.gz 2287050 SHA256 a695729f1bb3e486b86a74106c06a392c8aca048dc6b0f20785c3c311cfb2ef4 SHA512 14ebc49358e2e9c6a66aa45df815e7d974923626a03bdf20fc78abdf3a1da6d82cacd4d38acb69daba2d294d888430b0607e8c217d2eac14f6e490bca45c910c WHIRLPOOL 647e44d183db45063bc4fa5766525754e054a3df7a1488c1a032fb80e9e52839759c49c36f2b5750713b24de158bdcb391bf00e4c48daa45a77272a8ff2e201c
diff --git a/sci-chemistry/xcrysden/files/1.5.60-makefile.patch b/sci-chemistry/xcrysden/files/1.5.60-makefile.patch
new file mode 100644
index 0000000..57f1f07
--- /dev/null
+++ b/sci-chemistry/xcrysden/files/1.5.60-makefile.patch
@@ -0,0 +1,61 @@
+diff --git a/Makefile b/Makefile
+index dcd2b1e..b583a24 100644
+--- a/Makefile
++++ b/Makefile
+@@ -17,7 +17,7 @@ what:
+ # some varibales ...
+
+ all: tcl tk mesa fftw meschach xcrysden
+-xcrysden: usage bwidget bindir src-C src-F src-Tcl
++xcrysden: usage bindir src-C src-F src-Tcl
+
+ usage: $(TOPDIR)/docs/xcrysden.1
+ man $(TOPDIR)/docs/xcrysden.1 | awk 'BEGIN {lprint=0; print "## do not edit changes will be lost (file automatically generated)\n"; } /SYNOPSIS/ { lprint=1; } /SEE ALSO/ { lprint=0; } /a*/ { if (lprint) print; }' > usage
+@@ -226,7 +226,7 @@ BIN_FILES = bin/
+ #
+ # ------------------------------------------------------------------------
+
+-prefix ?= /usr/local
++prefix ?= /usr
+ version := $(shell cat version)
+ xcrysden = xcrysden-$(version)
+
+@@ -238,27 +238,27 @@ install: xcrysden
+ @echo "# "
+ @echo "#-----"
+ @echo
+- install -m755 -d $(prefix)/share/$(xcrysden)
+- cp -a $(IRON_ITEMS) $(prefix)/share/$(xcrysden)
++ install -m755 -d $(DESTDIR)$(prefix)/share/$(xcrysden)
++ cp -a $(IRON_ITEMS) $(DESTDIR)$(prefix)/share/$(xcrysden)
+ \
+ for subdir in Awk examples $(EXTERNAL_LIB_BWIDGET) images scripts Tcl util; do \
+ if test -d $$subdir; then \
+- install -m755 -d $(prefix)/share/$(xcrysden)/$$subdir; \
+- cp -a $$subdir/* $(prefix)/share/$(xcrysden)/$$subdir; \
++ install -m755 -d $(DESTDIR)$(prefix)/share/$(xcrysden)/$$subdir; \
++ cp -a $$subdir/* $(DESTDIR)$(prefix)/share/$(xcrysden)/$$subdir; \
+ fi; \
+ done
+ \
+- install -m755 -d $(prefix)/share/man/man1
+- install -m644 $(MAN_FILES) $(prefix)/share/man/man1/
+- gzip -f $(addprefix $(prefix)/share/man/man1/,$(MAN_PAGES))
++ install -m755 -d $(DESTDIR)$(prefix)/share/man/man1
++ install -m644 $(MAN_FILES) $(DESTDIR)$(prefix)/share/man/man1/
++ gzip -f $(addprefix $(DESTDIR)$(prefix)/share/man/man1/,$(MAN_PAGES))
+ \
+- install -m755 -d $(prefix)/lib/$(xcrysden)
+- install -m755 bin/* $(prefix)/lib/$(xcrysden)/
++ install -m755 -d $(DESTDIR)$(prefix)/lib/$(xcrysden)
++ install -m755 bin/* $(DESTDIR)$(prefix)/lib/$(xcrysden)/
+ \
+ prefix=$(prefix) xcrysden=$(xcrysden) sh sys_utils/wrappers.sh
+- if test ! -d $(prefix)/bin; then install -m755 -d $(prefix)/bin; fi
++ if test ! -d $(DESTDIR)$(prefix)/bin; then install -m755 -d $(DESTDIR)$(prefix)/bin; fi
+ for prog in $(PROGS); do \
+- install -m755 $$prog.wrapper $(prefix)/bin/$$prog; \
++ install -m755 $$prog.wrapper $(DESTDIR)$(prefix)/bin/$$prog; \
+ done
+
+
diff --git a/sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild b/sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild
new file mode 100644
index 0000000..93a0fd2
--- /dev/null
+++ b/sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="X-window CRYstalline Structures and DENsities"
+HOMEPAGE="http://www.xcrysden.org/"
+SRC_URI="http://www.xcrysden.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-lang/tcl:=
+ dev-lang/tk:=
+ dev-tcltk/bwidget
+ sci-libs/fftw:=
+ virtual/glu"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-makefile.patch"
+}
+
+src_configure() {
+ cat > Make.sys << EOF
+# USE_INTERP_RESULT is needed for compilation with tcl >= 8.6
+CFLAGS = -fPIC -DUSE_FONTS -DUSE_INTERP_RESULT
+MATH = -lm
+FC = gfortran -fdefault-double-8 -fdefault-real-8
+X_LIB = -lXmu -lX11
+TCL_LIB = -ltcl
+TK_LIB = -ltk
+GLU_LIB = -lGLU
+GL_LIB = -lGL
+FFTW3_LIB = -lfftw3
+EOF
+}
+
+src_compile() {
+ emake xcrysden
+}