mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 20:18:41 -04:00
dev-libs/fortran-regex: new package, v 1.1.2
Additional dependency of dev-util/fpm-0.9.0 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
parent
e921048e31
commit
b7be0d3fe3
1
dev-libs/fortran-regex/Manifest
Normal file
1
dev-libs/fortran-regex/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST fortran-regex-1.1.2.tar.gz 91350 BLAKE2B e76ff7ee0b2df685b6d5fdc920d7e4ffd9b77a3cf9982fa221234278d996886891dab7144ba55afe1a984416a44a0ea834c2836eeb38eea58c32e01fd271016e SHA512 845e1397c7139eca3cdbd0cac315df47fc237111c0b4e0396730b33187e860befbd7134b6b7c0df2f700b8b7fe8e4dbac4536e0af0e7e927470f1cef192cdcae
|
43
dev-libs/fortran-regex/fortran-regex-1.1.2.ebuild
Normal file
43
dev-libs/fortran-regex/fortran-regex-1.1.2.ebuild
Normal file
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2023 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-regex"
|
||||
SRC_URI="https://github.com/perazz/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_compile() {
|
||||
$(tc-getFC) ${FCFLAGS} -fPIC -Wl,-soname,lib"${PN}".so.1 ${LDFLAGS} \
|
||||
-shared -o libfortran-regex.so.1 src/regex.f90 || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cp regex_module.mod test/regex_module.mod || die
|
||||
cp libfortran-regex.so.1 test/libfortran-regex.so.1 || die
|
||||
pushd ./test || die
|
||||
ln -s libfortran-regex.so.1 libfortran-regex.so || die
|
||||
$(tc-getFC) ${FCFLAGS} -fPIC ${LDFLAGS} -L. \
|
||||
-o tests test_1.f90 test_2.f90 test_m_regex.f90 tests.f90 -lfortran-regex || die
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./
|
||||
./tests || die
|
||||
popd
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.so libfortran-regex.so.1
|
||||
dosym libfortran-regex.so.1 /usr/$(get_libdir)/libfortran-regex.so
|
||||
insinto /usr/include/"${PN}"
|
||||
doins regex_module.mod
|
||||
}
|
11
dev-libs/fortran-regex/metadata.xml
Normal file
11
dev-libs/fortran-regex/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>torokhov-s-a@yandex.ru</email>
|
||||
<name>Sergey Torokhov</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">perazz/fortran-regex</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user