/[gentoo-x86]/sci-physics/espresso/espresso-3.1.0.ebuild
Gentoo

Contents of /sci-physics/espresso/espresso-3.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sun Apr 8 11:11:55 2012 UTC (3 years, 1 month ago) by alexxy
Branch: MAIN
Changes since 1.2: +2 -2 lines
[sci-physics/espresso] Add ~amd64 keyword

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

1 ottxor 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 alexxy 1.3 # $Header: /var/cvsroot/gentoo-x86/sci-physics/espresso/espresso-3.1.0.ebuild,v 1.2 2012/03/24 22:38:49 ottxor Exp $
4 ottxor 1.1
5     EAPI=4
6    
7     inherit autotools-utils savedconfig
8    
9     DESCRIPTION="Extensible Simulation Package for Research on Soft matter"
10     HOMEPAGE="http://www.espressomd.org"
11    
12     if [[ ${PV} = 9999 ]]; then
13     EGIT_REPO_URI="git://git.savannah.nongnu.org/espressomd.git"
14     EGIT_BRANCH="master"
15     inherit git-2
16     else
17     SRC_URI="mirror://nongnu/${PN}md/${P}.tar.gz"
18     fi
19    
20     LICENSE="GPL-3"
21     SLOT="0"
22 alexxy 1.3 KEYWORDS="~amd64 ~x86"
23 ottxor 1.1 IUSE="X doc examples fftw mpi packages test -tk"
24     REQUIRED_USE="tk? ( X )"
25    
26     RESTRICT="tk? ( test )"
27    
28     RDEPEND="
29     dev-lang/tcl
30     fftw? ( sci-libs/fftw:3.0 )
31     mpi? ( virtual/mpi )
32     tk? ( >=dev-lang/tk-8.4.18-r1 )
33     X? ( x11-libs/libX11 )"
34    
35     DEPEND="${RDEPEND}
36     dev-lang/python
37     doc? (
38 ottxor 1.2 || ( <app-doc/doxygen-1.7.6.1[-nodot] >=app-doc/doxygen-1.7.6.1[dot] )
39 ottxor 1.1 virtual/latex-base )"
40    
41     DOCS=( AUTHORS NEWS README ChangeLog )
42    
43     src_prepare() {
44     autotools-utils_src_prepare
45     eautoreconf
46     restore_config myconfig.h
47     }
48    
49     src_configure() {
50     myeconfargs=(
51     $(use_with fftw) \
52     $(use_with mpi) \
53     $(use_with tk) \
54     $(use_with X x)
55     )
56     autotools-utils_src_configure
57     }
58    
59     src_compile() {
60     autotools-utils_src_compile
61     use doc && autotools-utils_src_compile ug doxygen tutorials
62     [[ ${PV} = 9999 ]] && use doc && autotools-utils_src_compile dg
63     }
64    
65     src_install() {
66     local i
67    
68     autotools-utils_src_install
69    
70     insinto /usr/share/${PN}
71     doins ${AUTOTOOLS_BUILD_DIR}/myconfig-sample.h
72    
73     save_config ${AUTOTOOLS_BUILD_DIR}/src/myconfig-final.h
74    
75     if use doc; then
76     [[ ${PV} = 9999 ]] && \
77     newdoc ${AUTOTOOLS_BUILD_DIR}/doc/dg/dg.pdf developer_guide.pdf
78     newdoc ${AUTOTOOLS_BUILD_DIR}/doc/ug/ug.pdf user_guide.pdf
79     dohtml -r ${AUTOTOOLS_BUILD_DIR}/doc/doxygen/html/*
80     for i in ${AUTOTOOLS_BUILD_DIR}/doc/tutorials/*/[0-9]*.pdf; do
81     newdoc ${i} tutorial_${i##*/}
82     done
83     fi
84    
85     if use examples; then
86     insinto /usr/share/${PN}/examples
87     doins -r samples/*
88     fi
89    
90     if use packages; then
91     insinto /usr/share/${PN}/packages
92     doins -r packages/*
93     fi
94     }
95    
96     pkg_postinst() {
97     elog
98     elog "Please read and cite:"
99     elog "ESPResSo, Comput. Phys. Commun. 174(9) ,704, 2006."
100     elog "http://dx.doi.org/10.1016/j.cpc.2005.10.005"
101     elog
102     elog "If you need more features, change"
103     elog "/etc/portage/savedconfig/${CATEGORY}/${PF}"
104     elog "and reemerge with USE=savedconfig"
105     elog
106     elog "For a full feature list see:"
107     elog "/usr/share/${PN}/myconfig-sample.h"
108     elog
109     }

  ViewVC Help
Powered by ViewVC 1.1.20