Diff hepmc-2.06.11 with a hepmc-2.06.11-r1
| /usr/portage/sci-physics/hepmc/hepmc-2.06.11-r1.ebuild 2026-05-27 19:17:04.715635457 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2024 Gentoo Authors |
|
| 1 |
# Copyright 1999-2026 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| ... | ... | |
| 8 | 8 |
MYP=HepMC-${PV}
|
| 9 | 9 | |
| 10 | 10 |
DESCRIPTION="Event Record for Monte Carlo Generators" |
| 11 |
HOMEPAGE="https://hepmc.web.cern.ch/hepmc/" |
|
| 11 |
HOMEPAGE=" |
|
| 12 |
https://hepmc.web.cern.ch/hepmc/ |
|
| 13 |
https://gitlab.cern.ch/hepmc/HepMC/ |
|
| 14 |
" |
|
| 12 | 15 |
SRC_URI="https://hepmc.web.cern.ch/hepmc/releases/hepmc${PV}.tgz"
|
| 13 | 16 |
S="${WORKDIR}/${MYP}"
|
| 14 | 17 | |
| 15 | 18 |
LICENSE="GPL-2" |
| 16 | 19 |
SLOT="2" |
| 17 |
KEYWORDS="amd64 ~x86" |
|
| 20 |
KEYWORDS="~amd64 ~x86" |
|
| 18 | 21 |
IUSE="cm doc examples gev test" |
| 19 | 22 |
RESTRICT="!test? ( test )" |
| 20 | 23 | |
| ... | ... | |
| 24 | 27 |
dev-texlive/texlive-latex |
| 25 | 28 |
dev-texlive/texlive-latexextra |
| 26 | 29 |
dev-texlive/texlive-latexrecommended |
| 27 |
)" |
|
| 30 |
) |
|
| 31 |
" |
|
| 28 | 32 | |
| 29 |
# Block against old slot 0 |
|
| 30 |
RDEPEND="!sci-physics/hepmc:0" |
|
| 33 |
PATCHES=( |
|
| 34 |
"${FILESDIR}"/${P}-cmake4.patch
|
|
| 35 |
"${FILESDIR}"/${P}-cmp0153.patch
|
|
| 36 |
) |
|
| 31 | 37 | |
| 32 | 38 |
src_prepare() {
|
| 33 | 39 |
cmake_src_prepare |
| 34 | 40 | |
| 35 |
sed -i -e '/add_subdirectory(doc)/d' CMakeLists.txt || die |
|
| 41 |
cmake_comment_add_subdirectory doc |
|
| 36 | 42 |
# CMake doc building broken |
| 37 | 43 |
# gentoo doc directory |
| 38 | 44 |
#sed -i \ |
| ... | ... | |
| 56 | 62 | |
| 57 | 63 |
# remove targets if use flags not set |
| 58 | 64 |
if ! use examples; then |
| 59 |
sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt || die |
|
| 65 |
cmake_comment_add_subdirectory examples |
|
| 60 | 66 |
fi |
| 61 | 67 |
if ! use test; then |
| 62 |
sed -i -e '/add_subdirectory(test)/d' CMakeLists.txt || die |
|
| 68 |
cmake_comment_add_subdirectory test |
|
| 63 | 69 |
fi |
| 64 | 70 | |
| 65 | 71 |
# remove static libs |