mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-libs/fortran-shlex: 2.0.1 version bump
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST fortran-shlex-1.0.1.tar.gz 6781 BLAKE2B ed64ef1b95cee8b41e12c552e9bd2a92b6af069bcb6004327f2fedda4ca8691441b9d33402b733487c746931c095693dec7423754e3c599ebb6d9af7ef12789f SHA512 d15b80ea222043df8114aa7af153361bd850bca24c489d3e3a78fcf66865eefb25740cceb22d792ca065a3d139d9270bd36d3ed5de61f1f89f945066ba2c19cd
|
||||
DIST fortran-shlex-1.2.1.tar.gz 9074 BLAKE2B 405747c72f5c9889e41781e238b4a9dc321631ce3b837a43c9c141d55b790eea29248f6c6dc5f70283b790b1d76e4713111d61533225f1462f3c84bbadfe265f SHA512 a88a51e94962fb7bc37e32b24bbe123d813ee2d0ccf9d03430d4243d9ff658f7364241a7b946a3201d84387413c33716a1879cb79dba5db94e77da61e7ba8c33
|
||||
DIST fortran-shlex-2.0.0.tar.gz 19944 BLAKE2B 3b28e2ac9cf16300615c4174a3280a719487b516b580d95a326933edcdce22f66529f72efdadc6027bd458537330a7db215a82e2701953fae65c2b9a31eb3249 SHA512 aeda4558bd07c9062e850b4bc69a373aef666eb23bd1358ca919cd97f1e58ed2a02ca825a23aa91f13db4fb0e52d48ee9ae785058117618661b28804e7be4341
|
||||
DIST fortran-shlex-2.0.1.tar.gz 19887 BLAKE2B 65732cf3aa9c9d42ac285588c7548ca230dc361a70605d63d9758865fbf4211cff3f64b7e49909d8fa3c9b46aaddabd295668a9e85771a621f5acada722935f7 SHA512 08998818ddce8d34e33fc200169c45f91d20bf165d3ca7f75375449cf04c780a3e0c47ca2360109f401891176e719e8168c574416bc24751e362351c0974b3e6
|
||||
|
||||
43
dev-libs/fortran-shlex/fortran-shlex-2.0.1.ebuild
Normal file
43
dev-libs/fortran-shlex/fortran-shlex-2.0.1.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
FORTRAN_STANDARD="2003"
|
||||
|
||||
inherit fortran-2 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Modern Fortran port of the tiny-regex-c library for regular expressions"
|
||||
HOMEPAGE="https://github.com/perazz/fortran-shlex"
|
||||
SRC_URI="https://github.com/perazz/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_compile() {
|
||||
$(tc-getFC) ${FCFLAGS} -fPIC -Wl,-soname,lib"${PN}".so.2 ${LDFLAGS} \
|
||||
-shared -o libfortran-shlex.so.2 src/shlex_module.f90 || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cp shlex_module.mod test/shlex_module.mod || die
|
||||
cp libfortran-shlex.so.2 test/libfortran-shlex.so.2 || die
|
||||
pushd ./test || die
|
||||
ln -s libfortran-shlex.so.2 libfortran-shlex.so || die
|
||||
$(tc-getFC) ${FCFLAGS} -fPIC ${LDFLAGS} -L. \
|
||||
-o tests shlex_test.f90 -lfortran-shlex || die
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./
|
||||
./tests || die
|
||||
popd
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.so libfortran-shlex.so.2
|
||||
dosym libfortran-shlex.so.2 /usr/$(get_libdir)/libfortran-shlex.so
|
||||
insinto /usr/include/"${PN}"
|
||||
doins shlex_module.mod
|
||||
}
|
||||
Reference in New Issue
Block a user