From: "Alexander Puck Neuwirth" <alexander@neuwirth-informatik.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/cernlib/
Date: Tue, 9 Apr 2024 13:06:32 +0000 (UTC) [thread overview]
Message-ID: <1712667935.d92a65a7066fd6bc6467e88a26c33e9e5a152a8e.alexander@gentoo> (raw)
commit: d92a65a7066fd6bc6467e88a26c33e9e5a152a8e
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Mon Apr 8 11:32:34 2024 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Tue Apr 9 13:05:35 2024 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d92a65a7
sci-physics/cernlib: split free and non-free
Closes: https://github.com/gentoo/sci/pull/1265
Co-authored-by: Andrew Nowa Ammerlaan <andrewammerlaan <AT> gentoo.org>
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
....31.0.ebuild => cernlib-2023.10.31.0-r1.ebuild} | 28 +++++++++++++++++-----
sci-physics/cernlib/metadata.xml | 3 +++
2 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/sci-physics/cernlib/cernlib-2023.10.31.0.ebuild b/sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild
similarity index 70%
rename from sci-physics/cernlib/cernlib-2023.10.31.0.ebuild
rename to sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild
index 697a25ef0..326fadde3 100644
--- a/sci-physics/cernlib/cernlib-2023.10.31.0.ebuild
+++ b/sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild
@@ -3,14 +3,22 @@ EAPI=8
CMAKE_MAKEFILE_GENERATOR="emake"
inherit cmake fortran-2
+MY_P="${P}"
DESCRIPTION="CERN program library for High Energy Physics"
HOMEPAGE="https://cernlib.web.cern.ch/cernlib/"
-SRC_URI="https://cernlib.web.cern.ch/download/2023_source/tar/${P}-free.tar.gz"
-S="${WORKDIR}/${P}-free"
+SRC_URI="
+ free? ( https://cernlib.web.cern.ch/download/2023_source/tar/${P}-free.tar.gz )
+ !free? ( https://cernlib.web.cern.ch/download/2023_source/tar/${P}.tar.gz )
+"
-LICENSE="GPL-3"
+LICENSE="
+ free? ( BSD LGPL-2+ GPL-1+ )
+ !free? ( all-rights-reserved )
+"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="+free"
+RESTRICT="mirror"
RDEPEND="
x11-libs/motif:0
@@ -28,10 +36,18 @@ BDEPEND="
"
PATCHES=(
- "${FILESDIR}"/$P-cfortran.patch
- "${FILESDIR}"/$P-ctest.patch
- "${FILESDIR}"/$P-man.patch
+ "${FILESDIR}"/${P}-cfortran.patch
+ "${FILESDIR}"/${P}-ctest.patch
+ "${FILESDIR}"/${P}-man.patch
)
+
+src_unpack() {
+ default
+ if use free; then
+ mv ${P}-free ${P} || die
+ fi
+}
+
src_prepare() {
cmake_src_prepare
# cfortran.patch
diff --git a/sci-physics/cernlib/metadata.xml b/sci-physics/cernlib/metadata.xml
index 887c950bc..dcbfb9b47 100644
--- a/sci-physics/cernlib/metadata.xml
+++ b/sci-physics/cernlib/metadata.xml
@@ -18,4 +18,7 @@
mathematics, data analysis, detectors simulation, data-handling
etc... applicable to a wide range of problems.
</longdescription>
+ <use>
+ <flag name="free"> Use free sources </flag>
+ </use>
</pkgmetadata>
next reply other threads:[~2024-04-09 13:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-09 13:06 Alexander Puck Neuwirth [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-23 14:17 [gentoo-commits] proj/sci:master commit in: sci-physics/cernlib/ Alexander Puck Neuwirth
2024-04-24 14:13 Alexander Puck Neuwirth
2024-10-22 22:04 Alexander Puck Neuwirth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1712667935.d92a65a7066fd6bc6467e88a26c33e9e5a152a8e.alexander@gentoo \
--to=alexander@neuwirth-informatik.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox