1 |
commit: 3e275019126eb1f40b448c5d59068dc9c4441216 |
2 |
Author: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 24 13:04:28 2015 +0000 |
4 |
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 24 13:04:28 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=3e275019 |
7 |
|
8 |
sci-chemistry/xcrysden: initial commit, ebuild written by me |
9 |
|
10 |
profiles/categories | 1 + |
11 |
sci-chemistry/xcrysden/Manifest | 1 + |
12 |
sci-chemistry/xcrysden/files/1.5.60-makefile.patch | 61 ++++++++++++++++++++++ |
13 |
sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild | 46 ++++++++++++++++ |
14 |
4 files changed, 109 insertions(+) |
15 |
|
16 |
diff --git a/profiles/categories b/profiles/categories |
17 |
index e149727..88fc39e 100644 |
18 |
--- a/profiles/categories |
19 |
+++ b/profiles/categories |
20 |
@@ -84,3 +84,4 @@ dev-nodejs |
21 |
x11-terms |
22 |
sys-process |
23 |
app-i18n |
24 |
+sci-chemistry |
25 |
|
26 |
diff --git a/sci-chemistry/xcrysden/Manifest b/sci-chemistry/xcrysden/Manifest |
27 |
new file mode 100644 |
28 |
index 0000000..123647d |
29 |
--- /dev/null |
30 |
+++ b/sci-chemistry/xcrysden/Manifest |
31 |
@@ -0,0 +1 @@ |
32 |
+DIST xcrysden-1.5.60.tar.gz 2287050 SHA256 a695729f1bb3e486b86a74106c06a392c8aca048dc6b0f20785c3c311cfb2ef4 SHA512 14ebc49358e2e9c6a66aa45df815e7d974923626a03bdf20fc78abdf3a1da6d82cacd4d38acb69daba2d294d888430b0607e8c217d2eac14f6e490bca45c910c WHIRLPOOL 647e44d183db45063bc4fa5766525754e054a3df7a1488c1a032fb80e9e52839759c49c36f2b5750713b24de158bdcb391bf00e4c48daa45a77272a8ff2e201c |
33 |
|
34 |
diff --git a/sci-chemistry/xcrysden/files/1.5.60-makefile.patch b/sci-chemistry/xcrysden/files/1.5.60-makefile.patch |
35 |
new file mode 100644 |
36 |
index 0000000..57f1f07 |
37 |
--- /dev/null |
38 |
+++ b/sci-chemistry/xcrysden/files/1.5.60-makefile.patch |
39 |
@@ -0,0 +1,61 @@ |
40 |
+diff --git a/Makefile b/Makefile |
41 |
+index dcd2b1e..b583a24 100644 |
42 |
+--- a/Makefile |
43 |
++++ b/Makefile |
44 |
+@@ -17,7 +17,7 @@ what: |
45 |
+ # some varibales ... |
46 |
+ |
47 |
+ all: tcl tk mesa fftw meschach xcrysden |
48 |
+-xcrysden: usage bwidget bindir src-C src-F src-Tcl |
49 |
++xcrysden: usage bindir src-C src-F src-Tcl |
50 |
+ |
51 |
+ usage: $(TOPDIR)/docs/xcrysden.1 |
52 |
+ 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 |
53 |
+@@ -226,7 +226,7 @@ BIN_FILES = bin/ |
54 |
+ # |
55 |
+ # ------------------------------------------------------------------------ |
56 |
+ |
57 |
+-prefix ?= /usr/local |
58 |
++prefix ?= /usr |
59 |
+ version := $(shell cat version) |
60 |
+ xcrysden = xcrysden-$(version) |
61 |
+ |
62 |
+@@ -238,27 +238,27 @@ install: xcrysden |
63 |
+ @echo "# " |
64 |
+ @echo "#-----" |
65 |
+ @echo |
66 |
+- install -m755 -d $(prefix)/share/$(xcrysden) |
67 |
+- cp -a $(IRON_ITEMS) $(prefix)/share/$(xcrysden) |
68 |
++ install -m755 -d $(DESTDIR)$(prefix)/share/$(xcrysden) |
69 |
++ cp -a $(IRON_ITEMS) $(DESTDIR)$(prefix)/share/$(xcrysden) |
70 |
+ \ |
71 |
+ for subdir in Awk examples $(EXTERNAL_LIB_BWIDGET) images scripts Tcl util; do \ |
72 |
+ if test -d $$subdir; then \ |
73 |
+- install -m755 -d $(prefix)/share/$(xcrysden)/$$subdir; \ |
74 |
+- cp -a $$subdir/* $(prefix)/share/$(xcrysden)/$$subdir; \ |
75 |
++ install -m755 -d $(DESTDIR)$(prefix)/share/$(xcrysden)/$$subdir; \ |
76 |
++ cp -a $$subdir/* $(DESTDIR)$(prefix)/share/$(xcrysden)/$$subdir; \ |
77 |
+ fi; \ |
78 |
+ done |
79 |
+ \ |
80 |
+- install -m755 -d $(prefix)/share/man/man1 |
81 |
+- install -m644 $(MAN_FILES) $(prefix)/share/man/man1/ |
82 |
+- gzip -f $(addprefix $(prefix)/share/man/man1/,$(MAN_PAGES)) |
83 |
++ install -m755 -d $(DESTDIR)$(prefix)/share/man/man1 |
84 |
++ install -m644 $(MAN_FILES) $(DESTDIR)$(prefix)/share/man/man1/ |
85 |
++ gzip -f $(addprefix $(DESTDIR)$(prefix)/share/man/man1/,$(MAN_PAGES)) |
86 |
+ \ |
87 |
+- install -m755 -d $(prefix)/lib/$(xcrysden) |
88 |
+- install -m755 bin/* $(prefix)/lib/$(xcrysden)/ |
89 |
++ install -m755 -d $(DESTDIR)$(prefix)/lib/$(xcrysden) |
90 |
++ install -m755 bin/* $(DESTDIR)$(prefix)/lib/$(xcrysden)/ |
91 |
+ \ |
92 |
+ prefix=$(prefix) xcrysden=$(xcrysden) sh sys_utils/wrappers.sh |
93 |
+- if test ! -d $(prefix)/bin; then install -m755 -d $(prefix)/bin; fi |
94 |
++ if test ! -d $(DESTDIR)$(prefix)/bin; then install -m755 -d $(DESTDIR)$(prefix)/bin; fi |
95 |
+ for prog in $(PROGS); do \ |
96 |
+- install -m755 $$prog.wrapper $(prefix)/bin/$$prog; \ |
97 |
++ install -m755 $$prog.wrapper $(DESTDIR)$(prefix)/bin/$$prog; \ |
98 |
+ done |
99 |
+ |
100 |
+ |
101 |
|
102 |
diff --git a/sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild b/sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild |
103 |
new file mode 100644 |
104 |
index 0000000..93a0fd2 |
105 |
--- /dev/null |
106 |
+++ b/sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild |
107 |
@@ -0,0 +1,46 @@ |
108 |
+# Copyright 1999-2015 Gentoo Foundation |
109 |
+# Distributed under the terms of the GNU General Public License v2 |
110 |
+# $Id$ |
111 |
+ |
112 |
+EAPI=5 |
113 |
+ |
114 |
+inherit eutils |
115 |
+ |
116 |
+DESCRIPTION="X-window CRYstalline Structures and DENsities" |
117 |
+HOMEPAGE="http://www.xcrysden.org/" |
118 |
+SRC_URI="http://www.xcrysden.org/download/${P}.tar.gz" |
119 |
+ |
120 |
+LICENSE="GPL-2" |
121 |
+SLOT="0" |
122 |
+KEYWORDS="~amd64" |
123 |
+IUSE="" |
124 |
+ |
125 |
+DEPEND="dev-lang/tcl:= |
126 |
+ dev-lang/tk:= |
127 |
+ dev-tcltk/bwidget |
128 |
+ sci-libs/fftw:= |
129 |
+ virtual/glu" |
130 |
+RDEPEND="${DEPEND}" |
131 |
+ |
132 |
+src_prepare() { |
133 |
+ epatch "${FILESDIR}/${PV}-makefile.patch" |
134 |
+} |
135 |
+ |
136 |
+src_configure() { |
137 |
+ cat > Make.sys << EOF |
138 |
+# USE_INTERP_RESULT is needed for compilation with tcl >= 8.6 |
139 |
+CFLAGS = -fPIC -DUSE_FONTS -DUSE_INTERP_RESULT |
140 |
+MATH = -lm |
141 |
+FC = gfortran -fdefault-double-8 -fdefault-real-8 |
142 |
+X_LIB = -lXmu -lX11 |
143 |
+TCL_LIB = -ltcl |
144 |
+TK_LIB = -ltk |
145 |
+GLU_LIB = -lGLU |
146 |
+GL_LIB = -lGL |
147 |
+FFTW3_LIB = -lfftw3 |
148 |
+EOF |
149 |
+} |
150 |
+ |
151 |
+src_compile() { |
152 |
+ emake xcrysden |
153 |
+} |