Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/thepeg/
Date: Thu, 07 Nov 2013 20:05:44
Message-Id: 1383572826.5468573fc0cc40d9b6d7e0f8763751e5c0e66b1e.alexxy@gentoo
1 commit: 5468573fc0cc40d9b6d7e0f8763751e5c0e66b1e
2 Author: Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 4 13:47:06 2013 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 4 13:47:06 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=5468573f
7
8 sci-physics/thepeg: version bump (1.9.0)
9
10 ---
11 sci-physics/thepeg/ChangeLog | 5 ++
12 sci-physics/thepeg/thepeg-1.9.0.ebuild | 92 ++++++++++++++++++++++++++++++++++
13 2 files changed, 97 insertions(+)
14
15 diff --git a/sci-physics/thepeg/ChangeLog b/sci-physics/thepeg/ChangeLog
16 index 5eae5bc..723b533 100644
17 --- a/sci-physics/thepeg/ChangeLog
18 +++ b/sci-physics/thepeg/ChangeLog
19 @@ -2,6 +2,11 @@
20 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
21 # $Header: $
22
23 +*thepeg-1.9.0 (04 Nov 2013)
24 +
25 + 04 Nov 2013; Jauhien Piatlicki <piatlicki@×××××.com> +thepeg-1.9.0.ebuild:
26 + Version bump
27 +
28 *thepeg-1.8.3 (11 Mar 2013)
29
30 11 Mar 2013; Jauhien Piatlicki (jauhien) <piatlicki@×××××.com>
31
32 diff --git a/sci-physics/thepeg/thepeg-1.9.0.ebuild b/sci-physics/thepeg/thepeg-1.9.0.ebuild
33 new file mode 100644
34 index 0000000..a9d8b3c
35 --- /dev/null
36 +++ b/sci-physics/thepeg/thepeg-1.9.0.ebuild
37 @@ -0,0 +1,92 @@
38 +# Copyright 1999-2013 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +# $Header: $
41 +
42 +EAPI=5
43 +
44 +inherit autotools elisp-common eutils java-pkg-opt-2
45 +
46 +MYP=ThePEG-${PV}
47 +
48 +DESCRIPTION="Toolkit for High Energy Physics Event Generation"
49 +HOMEPAGE="http://home.thep.lu.se/ThePEG/"
50 +SRC_URI="http://www.hepforge.org/archive/thepeg/${MYP}.tar.bz2
51 + test? ( hepmc? (
52 + http://www.hepforge.org/archive/lhapdf/pdfsets/current/cteq6ll.LHpdf
53 + http://www.hepforge.org/archive/lhapdf/pdfsets/current/cteq5l.LHgrid
54 + http://www.hepforge.org/archive/lhapdf/pdfsets/current/GRV98nlo.LHgrid
55 + http://www.hepforge.org/archive/lhapdf/pdfsets/current/MRST2001nlo.LHgrid ) )"
56 +LICENSE="GPL-2"
57 +
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~x86"
60 +IUSE="emacs hepmc java lhapdf test zlib"
61 +
62 +RDEPEND="sci-libs/gsl
63 + dev-lang/perl
64 + emacs? ( virtual/emacs )
65 + hepmc? ( sci-physics/hepmc )
66 + java? ( >=virtual/jre-1.5 )
67 + lhapdf? ( sci-physics/lhapdf )
68 + zlib? ( sys-libs/zlib )
69 +"
70 +DEPEND="${RDEPEND}
71 + test? ( sys-process/time )"
72 +
73 +S="${WORKDIR}/${MYP}"
74 +
75 +pkg_setup() {
76 + elog "There is an extra option on package Rivet not yet in Gentoo:"
77 + elog "You can use the env variable EXTRA_ECONF variable for this:"
78 + elog "EXTRA_ECONF=\"--with-rivet=DIR\""
79 + elog "where DIR - location of Rivet installation"
80 + java-pkg-opt-2_pkg_setup
81 +}
82 +
83 +src_prepare() {
84 + find -name 'Makefile.am' -exec sed -i '1ipkgdatadir=$(datadir)/thepeg' {} \; \
85 + || die "changing pkgdatadir name failed"
86 + sed -i '/dist_pkgdata_DATA = ThePEG.el/d' lib/Makefile.am \
87 + || die "preventing install ThePEG.el in pkgdatadir failed"
88 + epatch "${FILESDIR}"/${PN}-1.8.3-java.patch
89 + eautoreconf
90 +
91 + java-pkg-opt-2_src_prepare
92 +}
93 +
94 +src_configure() {
95 + econf \
96 + --disable-silent-rules \
97 + $(use_with hepmc hepmc "${EPREFIX}"/usr) \
98 + $(use_with java javagui) \
99 + $(use_with lhapdf LHAPDF "${EPREFIX}"/usr) \
100 + $(use_with zlib zlib "${EPREFIX}"/usr)
101 +}
102 +
103 +src_compile() {
104 + emake
105 + if use emacs; then
106 + elisp-compile lib/ThePEG.el || die
107 + fi
108 +}
109 +
110 +src_test() {
111 + emake LHAPATH="${DISTDIR}" check
112 +}
113 +
114 +src_install() {
115 + emake DESTDIR="${D}" install
116 + if use emacs; then
117 + elisp-install ${PN} lib/ThePEG.el lib/ThePEG.elc || die
118 + fi
119 + use java && java-pkg_newjar java/ThePEG.jar
120 +}
121 +
122 +pkg_postinst() {
123 + if use emacs; then
124 + elog "To use installed elisp file you should add"
125 + elog "(add-to-list 'load-path \"${SITELISP}/${PN}\")"
126 + elog "(load \"ThePEG\")"
127 + elog "to your .emacs file"
128 + fi
129 +}