diff options
author | Markus Dittrich <markusle@gentoo.org> | 2009-12-04 02:49:38 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2009-12-04 02:49:38 +0000 |
commit | 16c7a4bde9a06341f8d81c30ae496fea24fa1621 (patch) | |
tree | 3302c9ec9721ae8d4e6d4463f9ae2c82d6434273 /sci-chemistry | |
parent | Re-keyworded ppc because ntl is now keyworded ppc. (diff) | |
download | historical-16c7a4bde9a06341f8d81c30ae496fea24fa1621.tar.gz historical-16c7a4bde9a06341f8d81c30ae496fea24fa1621.tar.bz2 historical-16c7a4bde9a06341f8d81c30ae496fea24fa1621.zip |
Version bump (fixes #246255).
Package-Manager: portage-2.1.7.10/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry')
7 files changed, 374 insertions, 13 deletions
diff --git a/sci-chemistry/pdb-extract/ChangeLog b/sci-chemistry/pdb-extract/ChangeLog index cf86fe06b867..caa084f46086 100644 --- a/sci-chemistry/pdb-extract/ChangeLog +++ b/sci-chemistry/pdb-extract/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for sci-chemistry/pdb-extract -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-extract/ChangeLog,v 1.10 2008/07/02 01:39:27 dberkholz Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-extract/ChangeLog,v 1.11 2009/12/04 02:49:38 markusle Exp $ + +*pdb-extract-3.004 (04 Dec 2009) + + 04 Dec 2009; Markus Dittrich <markusle@gentoo.org> + +pdb-extract-3.004.ebuild, +files/pdb-extract-3.004-Makefile.patch, + +files/pdb-extract-3.004-cflags-install.patch, + +files/pdb-extract-3.004-env.patch, + +files/pdb-extract-3.004-gcc-4.3.patch: + Version bump (fixes #246255). Thanks much to Justin Lecher (jlec) + <jlec@j-schmitz.net> for preparing the ebuild and patches. 02 Jul 2008; Donnie Berkholz <dberkholz@gentoo.org>; pdb-extract-1.700.ebuild: diff --git a/sci-chemistry/pdb-extract/Manifest b/sci-chemistry/pdb-extract/Manifest index 14fb6e16d7ae..1f7cacb29976 100644 --- a/sci-chemistry/pdb-extract/Manifest +++ b/sci-chemistry/pdb-extract/Manifest @@ -1,15 +1,11 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +AUX pdb-extract-3.004-Makefile.patch 1506 RMD160 0462c70948aa2f87f519b33e91f4cc14104ccfad SHA1 1f9a951d0d41a368430d39acd0bac8e293fbb554 SHA256 6f7c4d1c60b33a9c1d13e49d30973d67291a2e005012f0379c20ab8e5dea8bb1 +AUX pdb-extract-3.004-cflags-install.patch 7056 RMD160 2c33a9ce727d26b8c64c8788770d5aa7762669b2 SHA1 903c6743a81aa5fee0b87540542403cb0d3cfc31 SHA256 a71dc936c47e4494790ec938df9a51338f78307abf9cf3b40ad8f1e84a3a74fd +AUX pdb-extract-3.004-env.patch 501 RMD160 6698680915a9e585f7a8c4d266f5c644e3229ce0 SHA1 ccc2371360fb6da39a6370132764ee97952387b1 SHA256 ccba5db2e3e6eb18465c62b795635ea4ecfbd6695f36376bc298132f986dd8ff +AUX pdb-extract-3.004-gcc-4.3.patch 573 RMD160 a9d563b1834bf6293568793a1895026f5b5b9d39 SHA1 bc726c4461ead9faae1694eff53603726d53d91a SHA256 e92f42fb84198e8b543edc364565804f61fbb440da03103506bcb6e6848750ed AUX respect-cflags-and-fix-install.patch 8415 RMD160 b1418278385f197db26a49be4bf1ad2bbed4b4c0 SHA1 93bd785a4683542716309d917335de7a9c3573d4 SHA256 ab44177b9a9e34573331aafeb112efa86154a0c1ee706930aa05c32c0eb1e58b DIST pdb-extract-v1.700-prod-src.tar.gz 9081548 RMD160 c565de9af1cea09ccf0bd59527191fc76a4b7aa1 SHA1 27eedd1d46e95e7006c90694e379bdcb4f20fd92 SHA256 b35d2bf5d7f96580782a3645ab288aec1be21926bf52969f4de74d4f514a471c +DIST pdb-extract-v3.004-prod-src.tar.gz 942450 RMD160 3d5d46e668a52109678fdf59afbe664dac1643f9 SHA1 7b5d7ce200d33e68fa352cd3658e382bc37e9768 SHA256 58bef2aba4869cdd16a79ddc588da5596a2ccd1f5c925f300b63b6d8299bb953 EBUILD pdb-extract-1.700.ebuild 1457 RMD160 367b396727c4543fc192844f0361ddfed990424a SHA1 f27617cae26aa6e24284de3cb496d807ba1272f8 SHA256 29e7b728dab5a47bba11eafb034c5d9fd4323660af4404782990879c85e538fb -MISC ChangeLog 1524 RMD160 6289aaaa679255a3e7a7579380f4a1c53a05ebda SHA1 b5a33e22197e778358c06995c1252390af09d12a SHA256 798ea8dd6121806ad76ef6aa6d7250eb168969d7bab25d792651691399c6ce6f +EBUILD pdb-extract-3.004.ebuild 2282 RMD160 61ed3e72d2ff3559519596943c94b4e2af9fd912 SHA1 cbd9dee7e69c5d5cb7752eeaa03fff3f188631be SHA256 87761e728989145410a636932751bd0c2c3ae0d486c5e5fa15c932379bbd5605 +MISC ChangeLog 1939 RMD160 2801ec39dda6fba872e760fc3ed7d93fcf0a8d2e SHA1 c9026cd238e6029e083edf81325fb64566cd2070 SHA256 e2e078a85978cb36ef7a8e20bfd43fb93f9c4e17d4b243b2e5c889745d026e05 MISC metadata.xml 166 RMD160 4452298fd03e7c9395d1182bfe69d60a14144af6 SHA1 cb0b513473c0348f4f6f6cd9a132e4884155fddb SHA256 84c92b49702daf95eace8d2765215cbd8650da4ef776f9f700b5ce3785dec852 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.9 (GNU/Linux) - -iEYEARECAAYFAkhq3FcACgkQXVaO67S1rtsJkgCfTf159TDQhaJNpJublfD5oenh -fIEAoKWV42+DXvdUaIO2PEd26uQZ1bny -=u5Lb ------END PGP SIGNATURE----- diff --git a/sci-chemistry/pdb-extract/files/pdb-extract-3.004-Makefile.patch b/sci-chemistry/pdb-extract/files/pdb-extract-3.004-Makefile.patch new file mode 100644 index 000000000000..6e3ed5e14339 --- /dev/null +++ b/sci-chemistry/pdb-extract/files/pdb-extract-3.004-Makefile.patch @@ -0,0 +1,46 @@ +--- Makefile 2008-12-05 14:36:44.000000000 +0100 ++++ Makefile.new 2008-12-05 14:37:21.000000000 +0100 +@@ -19,13 +19,7 @@ + CHECKOUT_SCRIPT_MODULE = util + CHECKOUT_SCRIPT = checkout.sh + +-LIBDIRS = cifobj-common-v4.1 \ +- tables-v8.0 \ +- regex-v2.2 \ +- cif-file-v1.0 \ +- misclib-v2.2 \ +- cifparse-obj-v7.0 \ +- $(EXTRACT) ++LIBDIRS = $(EXTRACT) + + all: compile + +--- pdb-extract-v3.0/Makefile 2008-12-05 14:42:58.000000000 +0100 ++++ pdb-extract-v3.0/Makefile.new 2008-12-05 14:42:15.510315392 +0100 +@@ -6,6 +6,7 @@ + + M_INCL_DIR = ../include + M_LIB_DIR = ../lib ++M_LIB_DIR_GENTOO = /usr/GENTOOLIBDIR + M_BIN_DIR = ../bin + + PROJ_DIR = . +@@ -37,12 +38,12 @@ + include ../etc/Makefile.platform + + # Dependent libraries for the pdbml-parser +-CIF_FILE_LIB = $(M_LIB_DIR)/cif-file.a +-CIFPARSE_LIB = $(M_LIB_DIR)/cifparse-obj.a +-CIF_TABLE_LIB = $(M_LIB_DIR)/cif-table-obj.a +-CIFOBJ_COMMON_LIB = $(M_LIB_DIR)/cifobj-common.a +-REGEX_LIB = $(M_LIB_DIR)/regex.a +-MISCLIB_LIB = $(M_LIB_DIR)/misclib.a ++CIF_FILE_LIB = $(M_LIB_DIR_GENTOO)/cif-file.a ++CIFPARSE_LIB = $(M_LIB_DIR_GENTOO)/cifparse-obj.a ++CIF_TABLE_LIB = $(M_LIB_DIR_GENTOO)/tables.a ++CIFOBJ_COMMON_LIB = $(M_LIB_DIR_GENTOO)/common.a ++REGEX_LIB = $(M_LIB_DIR_GENTOO)/regex.a ++MISCLIB_LIB = $(M_LIB_DIR_GENTOO)/misclib.a + + ALL_DEP_LIBS = $(CIF_FILE_LIB) $(CIFPARSE_LIB) \ + $(CIF_TABLE_LIB) $(CIFOBJ_COMMON_LIB) $(REGEX_LIB) $(MISCLIB_LIB) diff --git a/sci-chemistry/pdb-extract/files/pdb-extract-3.004-cflags-install.patch b/sci-chemistry/pdb-extract/files/pdb-extract-3.004-cflags-install.patch new file mode 100644 index 000000000000..513cb71ba351 --- /dev/null +++ b/sci-chemistry/pdb-extract/files/pdb-extract-3.004-cflags-install.patch @@ -0,0 +1,199 @@ +diff -Naur pdb-extract-v3.004-prod-src/Makefile pdb-extract-v3.004-prod-src.new/Makefile +--- pdb-extract-v3.004-prod-src/Makefile 2007-09-11 11:19:46.000000000 -0400 ++++ pdb-extract-v3.004-prod-src.new/Makefile 2009-12-03 21:34:10.000000000 -0500 +@@ -52,7 +52,7 @@ + echo "------------------------------------------------------------"; \ + echo "**** Making $$libdir ****"; \ + echo "------------------------------------------------------------"; \ +- (cd $$libdir && $(MAKE) -f $(MAKEFILE) "OPT=-O" install) || exit 1; \ ++ (cd $$libdir && $(MAKE) -f $(MAKEFILE) C_OPT="${CFLAGS}" CCC_OPT="${CXXFLAGS}" F_OPT="${FFLAGS}" LDFLAGS_OPT="${LDFLAGS}" install) || exit 1; \ + done + + beta: +diff -Naur pdb-extract-v3.004-prod-src/etc/make.platform.darwin3 pdb-extract-v3.004-prod-src.new/etc/make.platform.darwin3 +--- pdb-extract-v3.004-prod-src/etc/make.platform.darwin3 2007-09-11 11:19:46.000000000 -0400 ++++ pdb-extract-v3.004-prod-src.new/etc/make.platform.darwin3 2009-12-03 21:34:10.000000000 -0500 +@@ -91,7 +91,7 @@ + DEFINES=$(GDEFINES) $(LDEFINES) + + ## Global include directories +-GINCLUDES= ++GINCLUDES=-I/usr/include/cifparse-obj + + # Collect all include directories from global include directories and + # include directories specified in module makefile +@@ -159,7 +159,7 @@ + STATIC_LINKING= + + # Linker flags +-LDFLAGS=$(ABI) -w $(STATIC_LINKING) ++LDFLAGS=$(LDFLAGS_OPT) $(ABI) -w $(STATIC_LINKING) + + # Fortran linker + F77_LINKER=f77 +diff -Naur pdb-extract-v3.004-prod-src/etc/make.platform.darwin4 pdb-extract-v3.004-prod-src.new/etc/make.platform.darwin4 +--- pdb-extract-v3.004-prod-src/etc/make.platform.darwin4 2007-09-11 11:19:46.000000000 -0400 ++++ pdb-extract-v3.004-prod-src.new/etc/make.platform.darwin4 2009-12-03 21:34:10.000000000 -0500 +@@ -92,7 +92,7 @@ + DEFINES=$(GDEFINES) $(LDEFINES) + + ## Global include directories +-GINCLUDES= ++GINCLUDES=-I/usr/include/cifparse-obj + + # Collect all include directories from global include directories and + # include directories specified in module makefile +@@ -160,7 +160,7 @@ + STATIC_LINKING= + + # Linker flags +-LDFLAGS=$(ABI) -w $(STATIC_LINKING) ++LDFLAGS=$(LDFLAGS_OPT) $(ABI) -w $(STATIC_LINKING) + + # Fortran linker + F77_LINKER=f77 +diff -Naur pdb-extract-v3.004-prod-src/etc/make.platform.gnu3 pdb-extract-v3.004-prod-src.new/etc/make.platform.gnu3 +--- pdb-extract-v3.004-prod-src/etc/make.platform.gnu3 2007-09-11 11:19:46.000000000 -0400 ++++ pdb-extract-v3.004-prod-src.new/etc/make.platform.gnu3 2009-12-03 21:34:10.000000000 -0500 +@@ -6,6 +6,8 @@ + ## + ########################################################################## + ++LIBDIR=/usr/lib ++ + #-----Lexer and Parser section-------------------------------------------# + + # Lexer executable +@@ -89,7 +91,7 @@ + DEFINES=$(GDEFINES) $(LDEFINES) + + ## Global include directories +-GINCLUDES= ++GINCLUDES=-I/usr/include/cifparse-obj + + # Collect all include directories from global include directories and + # include directories specified in module makefile +@@ -107,8 +109,8 @@ + C_WARNINGS=$(WARNINGS) + + # C compiler flags +-CFLAGS=$(OPT) $(ABI) $(ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) $(INCLUDES) +-CFLAGS_NONANSI=$(OPT) $(ABI) $(NON_ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) \ ++CFLAGS=$(C_OPT) $(ABI) $(ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) $(INCLUDES) ++CFLAGS_NONANSI=$(C_OPT) $(ABI) $(NON_ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) \ + $(INCLUDES) + + ## C++ compiler +@@ -128,9 +130,9 @@ + EXT=C + + # C++ compiler flags +-C++FLAGS=$(OPT) $(ABI) $(ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) $(DEFINES) \ ++C++FLAGS=$(CCC_OPT) $(ABI) $(ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) $(DEFINES) \ + $(INCLUDES) +-C++FLAGS_NONANSI=$(OPT) $(ABI) $(NON_ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) \ ++C++FLAGS_NONANSI=$(CCC_OPT) $(ABI) $(NON_ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) \ + $(DEFINES) $(INCLUDES) + # C++FLAGS_RELAXED should be set to avoid warnings reported by third party + # source code that is not maintained by PDB +@@ -144,7 +146,7 @@ + F77=f77 + + # Fortran compiler flags +-FFLAGS=-O -u ++FFLAGS=$(F_OPT) + + # Additional Fortran libraries + F77LIBS= +@@ -154,11 +156,11 @@ + #-----Linkers section----------------------------------------------------# + + # Static linking option. If not defined, dynamic linking is used. +-STATIC_LINKING=-static ++STATIC_LINKING= + + # Linker flags +-LDFLAGS=$(ABI) -w $(STATIC_LINKING) +-LDFLAGS_NO_STATIC=$(ABI) -w ++LDFLAGS=$(LDFLAGS_OPT) $(ABI) -w $(STATIC_LINKING) ++LDFLAGS_NO_STATIC=$(LDFLAGS_OPT) $(ABI) -w + + # Fortran linker + F77_LINKER=f77 +diff -Naur pdb-extract-v3.004-prod-src/etc/make.platform.gnu4 pdb-extract-v3.004-prod-src.new/etc/make.platform.gnu4 +--- pdb-extract-v3.004-prod-src/etc/make.platform.gnu4 2007-09-11 11:19:46.000000000 -0400 ++++ pdb-extract-v3.004-prod-src.new/etc/make.platform.gnu4 2009-12-03 21:34:10.000000000 -0500 +@@ -6,6 +6,8 @@ + ## + ########################################################################## + ++LIBDIR=/usr/lib ++ + #-----Lexer and Parser section-------------------------------------------# + + # Lexer executable +@@ -34,7 +36,7 @@ + + # WARNINGS_AS_ERRORS defines flags to instruct all compilers to treat all + # warnings as errors. +-WARNINGS_AS_ERRORS=-Werror ++WARNINGS_AS_ERRORS= + + # ALL_WARNINGS defines flags to instruct all compilers to report all + # warnings. +@@ -90,7 +92,7 @@ + DEFINES=$(GDEFINES) $(LDEFINES) + + ## Global include directories +-GINCLUDES= ++GINCLUDES=-I/usr/include/cifparse-obj + + # Collect all include directories from global include directories and + # include directories specified in module makefile +@@ -108,8 +110,8 @@ + C_WARNINGS=$(WARNINGS) + + # C compiler flags +-CFLAGS=$(OPT) $(ABI) $(ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) $(INCLUDES) +-CFLAGS_NONANSI=$(OPT) $(ABI) $(NON_ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) \ ++CFLAGS=$(C_OPT) $(ABI) $(ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) $(INCLUDES) ++CFLAGS_NONANSI=$(C_OPT) $(ABI) $(NON_ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) \ + $(INCLUDES) + + ## C++ compiler +@@ -129,9 +131,9 @@ + EXT=C + + # C++ compiler flags +-C++FLAGS=$(OPT) $(ABI) $(ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) $(DEFINES) \ ++C++FLAGS=$(CCC_OPT) $(ABI) $(ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) $(DEFINES) \ + $(INCLUDES) +-C++FLAGS_NONANSI=$(OPT) $(ABI) $(NON_ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) \ ++C++FLAGS_NONANSI=$(CCC_OPT) $(ABI) $(NON_ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) \ + $(DEFINES) $(INCLUDES) + # C++FLAGS_RELAXED should be set to avoid warnings reported by third party + # source code that is not maintained by PDB +@@ -145,7 +147,7 @@ + F77=f77 + + # Fortran compiler flags +-FFLAGS=-O -u ++FFLAGS=$(F_OPT) + + # Additional Fortran libraries + F77LIBS= +@@ -155,11 +157,11 @@ + #-----Linkers section----------------------------------------------------# + + # Static linking option. If not defined, dynamic linking is used. +-STATIC_LINKING=-static ++STATIC_LINKING= + + # Linker flags +-LDFLAGS=$(ABI) -w $(STATIC_LINKING) +-LDFLAGS_NO_STATIC=$(ABI) -w ++LDFLAGS=$(LDFLAGS_OPT) $(ABI) -w $(STATIC_LINKING) ++LDFLAGS_NO_STATIC=$(LDFLAGS_OPT) $(ABI) -w + + # Fortran linker + F77_LINKER=f77 diff --git a/sci-chemistry/pdb-extract/files/pdb-extract-3.004-env.patch b/sci-chemistry/pdb-extract/files/pdb-extract-3.004-env.patch new file mode 100644 index 000000000000..6506713742b6 --- /dev/null +++ b/sci-chemistry/pdb-extract/files/pdb-extract-3.004-env.patch @@ -0,0 +1,11 @@ +--- pdb-extract-v3.0/src/extract.C 2007-09-11 17:19:48.000000000 +0200 ++++ pdb-extract-v3.0/src/extract.C.new 2008-12-05 17:49:59.000000000 +0100 +@@ -1689,7 +1689,7 @@ + open_file_error(inpfile, "get_mmcif"); + } + +- (!strcmp_case(CCP4,"yes"))? temp = getenv("CCP4"): temp = getenv("PDB_EXTRACT"); ++ (!strcmp_case(CCP4,"yes"))? temp = getenv("CCP4"): temp = getenv("PDB_EXTRACT_ROOT"); + if(temp != NULL) { + strcpy(pdb_extract, ""); + strcpy(pdb_extract_sf, ""); diff --git a/sci-chemistry/pdb-extract/files/pdb-extract-3.004-gcc-4.3.patch b/sci-chemistry/pdb-extract/files/pdb-extract-3.004-gcc-4.3.patch new file mode 100644 index 000000000000..6907399c27df --- /dev/null +++ b/sci-chemistry/pdb-extract/files/pdb-extract-3.004-gcc-4.3.patch @@ -0,0 +1,20 @@ +--- cifobj-common-v4.1/src/GenString.C 2008-11-13 10:44:01.000000000 +0100 ++++ cifobj-common-v4.1/src/GenString.C.new 2008-11-13 10:43:54.000000000 +0100 +@@ -144,6 +144,7 @@ + #include <string> + #include <algorithm> + #include <sstream> ++#include <string.h> + + #include "GenString.h" + +--- tables-v8.0/src/ISTable.C 2007-09-11 17:19:47.000000000 +0200 ++++ tables-v8.0/src/ISTable.C.new 2008-11-13 10:48:18.000000000 +0100 +@@ -150,6 +150,7 @@ + #include <sstream> + #include <iostream> + #include <iomanip> ++#include <limits.h> + + #include "Exceptions.h" + #include "GenString.h" diff --git a/sci-chemistry/pdb-extract/pdb-extract-3.004.ebuild b/sci-chemistry/pdb-extract/pdb-extract-3.004.ebuild new file mode 100644 index 000000000000..eab41ff4ca7e --- /dev/null +++ b/sci-chemistry/pdb-extract/pdb-extract-3.004.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-extract/pdb-extract-3.004.ebuild,v 1.1 2009/12/04 02:49:38 markusle Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs multilib + +MY_P="${PN}-v${PV}-prod-src" +DESCRIPTION="Tools for extracting mmCIF data from structure determination applications" +HOMEPAGE="http://sw-tools.pdb.org/apps/PDB_EXTRACT/index.html" +SRC_URI="http://sw-tools.pdb.org/apps/PDB_EXTRACT/${MY_P}.tar.gz" +LICENSE="PDB" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +RDEPEND="!<app-text/html-xml-utils-5.3" +DEPEND="${RDEPEND} + >=sci-libs/cifparse-obj-7.025" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cflags-install.patch + epatch "${FILESDIR}"/${P}-gcc-4.3.patch + epatch "${FILESDIR}"/${P}-Makefile.patch + epatch "${FILESDIR}"/${P}-env.patch + + sed -i "s:GENTOOLIBDIR:$(get_libdir):g" \ + pdb-extract-v3.0/Makefile \ + || die "Failed to fix libdir" + + # Get rid of unneeded directories, to make sure we use system files + ebegin "Deleting redundant directories" + rm -rf cif-file-v1.0 cifobj-common-v4.1 cifparse-obj-v7.0 \ + misclib-v2.2 regex-v2.2 tables-v8.0 + eend + + sed -i \ + -e "s:^\(CCC=\).*:\1$(tc-getCXX):g" \ + -e "s:^\(CC=\).*:\1$(tc-getCC):g" \ + -e "s:^\(GINCLUDES=\).*:\1-I/usr/include/cifparse-obj:g" \ + -e "s:^\(LIBDIR=\).*:\1/usr/$(get_libdir):g" \ + "${S}"/etc/make.* \ + || die "Failed to fix makefiles" +} + +src_compile() { + emake || die "make failed" +} + +src_install() { + dobin bin/pdb_extract{,_sf} \ + || die "failed to install binaries" + newbin bin/extract extract-pdb \ + || die "failed to rename extract binary" + dolib.a lib/pdb-extract.a \ + || die "failed to install library" + insinto /usr/include/rcsb + doins include/* \ + || die "failed to install include files" + dodoc README-source README \ + || die "failed to install docs" + insinto /usr/lib/rcsb/pdb-extract-data + doins pdb-extract-data/* \ + || die "failed to install data files" + + cat >> "${T}"/envd <<- EOF + PDB_EXTRACT="/usr/lib/rcsb/" + PDB_EXTRACT_ROOT="/usr/" + EOF + + newenvd "${T}"/envd 20pdb-extract \ + || "failed to install env files" +} + +pkg_postinst() { + ewarn "We moved extract to extract-pdb due to multiple collision of /usr/bin/extract" +} |