/[gentoo-x86]/sci-chemistry/pdb-extract/pdb-extract-3.11.ebuild
Gentoo

Contents of /sci-chemistry/pdb-extract/pdb-extract-3.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Jun 23 18:57:05 2012 UTC (2 years, 1 month ago) by jlec
Branch: MAIN
CVS Tags: HEAD
sci-chemistry/pdb-extract: Version Bump, #379159

(Portage version: 2.2.0_alpha111/cvs/Linux x86_64)

1 jlec 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-extract/pdb-extract-3.004-r2.ebuild,v 1.3 2011/08/01 19:27:59 maekke Exp $
4    
5     EAPI=4
6    
7     inherit eutils toolchain-funcs multilib prefix
8    
9     MY_P="${PN}-v${PV}-prod-src"
10    
11     DESCRIPTION="Tools for extracting mmCIF data from structure determination applications"
12     HOMEPAGE="http://sw-tools.pdb.org/apps/PDB_EXTRACT/index.html"
13     SRC_URI="http://sw-tools.pdb.org/apps/PDB_EXTRACT/${MY_P}.tar.gz"
14    
15     LICENSE="PDB"
16     SLOT="0"
17     KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
18     IUSE=""
19    
20     RDEPEND="!<app-text/html-xml-utils-5.3"
21     DEPEND="${RDEPEND}
22     >=sci-libs/cifparse-obj-7.025"
23    
24     S="${WORKDIR}/${MY_P}"
25    
26     MAKEOPTS+=" -j1"
27    
28     src_prepare() {
29     epatch \
30     "${FILESDIR}"/${P}-cflags-install.patch \
31     "${FILESDIR}"/${P}-gcc-4.7.patch \
32     "${FILESDIR}"/${PN}-3.004-env.patch
33    
34     sed -i \
35     -e "s:^\(CCC=\).*:\1$(tc-getCXX):g" \
36     -e "s:^\(CC=\).*:\1$(tc-getCC):g" \
37     -e "s:^\(GINCLUDES=\).*:\1-I${EPREFIX}/usr/include/cifparse-obj:g" \
38     -e "s:^\(LIBDIR=\).*:\1${EPREFIX}/usr/$(get_libdir):g" \
39     "${S}"/etc/make.* \
40     || die "Failed to fix makefiles"
41    
42     eprefixify pdb-extract-v3.0/Makefile etc/*
43     }
44    
45     src_install() {
46     exeinto /usr/libexec/ccp4/bin
47     doexe bin/pdb_extract{,_sf} bin/extract
48     insinto /usr/include/rcsb
49     doins include/*
50     dodoc README*
51     insinto /usr/share/rcsb/
52     doins -r pdb-extract-data
53    
54     cat >> "${T}"/envd <<- EOF
55     PDB_EXTRACT="${EPREFIX}/usr/share/rcsb/"
56     PDB_EXTRACT_ROOT="${EPREFIX}/usr/"
57     EOF
58    
59     newenvd "${T}"/envd 20pdb-extract
60     }

  ViewVC Help
Powered by ViewVC 1.1.20