From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BAA4613881C for ; Thu, 24 Sep 2015 13:04:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F00621C00B; Thu, 24 Sep 2015 13:04:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2A9B021C00B for ; Thu, 24 Sep 2015 13:04:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BBF23340566 for ; Thu, 24 Sep 2015 13:04:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6A90C18C for ; Thu, 24 Sep 2015 13:04:34 +0000 (UTC) From: "Tiziano Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tiziano Müller" Message-ID: <1443099868.3e275019126eb1f40b448c5d59068dc9c4441216.dev-zero@gentoo> Subject: [gentoo-commits] dev/dev-zero:master commit in: profiles/, sci-chemistry/xcrysden/files/, sci-chemistry/xcrysden/ X-VCS-Repository: dev/dev-zero X-VCS-Files: profiles/categories sci-chemistry/xcrysden/Manifest sci-chemistry/xcrysden/files/1.5.60-makefile.patch sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild X-VCS-Directories: sci-chemistry/xcrysden/files/ profiles/ sci-chemistry/xcrysden/ X-VCS-Committer: dev-zero X-VCS-Committer-Name: Tiziano Müller X-VCS-Revision: 3e275019126eb1f40b448c5d59068dc9c4441216 X-VCS-Branch: master Date: Thu, 24 Sep 2015 13:04:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 519edd89-b6a3-4aab-b132-91b5d18252d6 X-Archives-Hash: 8188523e8723c537402f1f421ff0f312 commit: 3e275019126eb1f40b448c5d59068dc9c4441216 Author: Tiziano Müller gentoo org> AuthorDate: Thu Sep 24 13:04:28 2015 +0000 Commit: Tiziano Müller gentoo org> CommitDate: Thu Sep 24 13:04:28 2015 +0000 URL: https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=3e275019 sci-chemistry/xcrysden: initial commit, ebuild written by me profiles/categories | 1 + sci-chemistry/xcrysden/Manifest | 1 + sci-chemistry/xcrysden/files/1.5.60-makefile.patch | 61 ++++++++++++++++++++++ sci-chemistry/xcrysden/xcrysden-1.5.60.ebuild | 46 ++++++++++++++++ 4 files changed, 109 insertions(+) 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 +}