mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
dev-libs/m_cli2: rename to M_CLI2 to follow upstream naming
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
@@ -11,7 +11,7 @@ m_cli2_sha="90a1a146e19c8ad37b0469b8cbd04bc28eb67a50"
|
|||||||
|
|
||||||
DESCRIPTION="M_CLI2 - parse Unix-like command line arguments from Fortran"
|
DESCRIPTION="M_CLI2 - parse Unix-like command line arguments from Fortran"
|
||||||
HOMEPAGE="https://github.com/urbanjost/M_CLI2"
|
HOMEPAGE="https://github.com/urbanjost/M_CLI2"
|
||||||
SRC_URI="https://github.com/urbanjost/M_CLI2/archive/${m_cli2_sha}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/urbanjost/${PN}/archive/${m_cli2_sha}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
LICENSE="Unlicense"
|
LICENSE="Unlicense"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
@@ -20,7 +20,7 @@ IUSE="test"
|
|||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
S="${WORKDIR}/M_CLI2-${m_cli2_sha}/src"
|
S="${WORKDIR}/${PN}-${m_cli2_sha}/src"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
@@ -34,7 +34,7 @@ src_compile() {
|
|||||||
*gfortran* )
|
*gfortran* )
|
||||||
emake clean
|
emake clean
|
||||||
emake F90=$(tc-getFC) gfortran
|
emake F90=$(tc-getFC) gfortran
|
||||||
$(tc-getFC) -Wl,-soname,lib"${PN}".so.1 ${LDFLAGS} -shared -o lib"${PN}".so.1 M_CLI2.o;;
|
$(tc-getFC) -Wl,-soname,lib"${PN}".so.1 ${LDFLAGS} -shared -o lib"${PN}".so.1 ${PN}.o;;
|
||||||
* )
|
* )
|
||||||
die "Sorry, only GNU gfortran is currently supported in the ebuild" ;;
|
die "Sorry, only GNU gfortran is currently supported in the ebuild" ;;
|
||||||
esac
|
esac
|
||||||
@@ -46,7 +46,7 @@ src_test() {
|
|||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto "/usr/include/${PN}"
|
insinto "/usr/include/${PN}"
|
||||||
doins "${PN}.mod"
|
doins "m_cli2.mod"
|
||||||
dolib.so "lib${PN}.so.1"
|
dolib.so "lib${PN}.so.1"
|
||||||
dosym "lib${PN}.so.1" "/usr/$(get_libdir)/lib${PN}.so"
|
dosym "lib${PN}.so.1" "/usr/$(get_libdir)/lib${PN}.so"
|
||||||
}
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
DIST m_cli2-1.0.0_p20221116.tar.gz 13771712 BLAKE2B a97eb944e7a117f821822a6018d27e666ad9e761cc0d0c6901ae384b1d1d19002ee117d22695e7cfbca62e8038adcdc11d902af58f15a61f44a0e3850b8547b5 SHA512 47ede587a6fd10a8f68deae0df0eb380a51499ed15b736905054619eefd25f018189f656384fa8d72093f622e0a9871cfdea81796a9f9071e797086182f8bd57
|
DIST M_CLI2-1.0.0_p20221116.tar.gz 13771712 BLAKE2B a97eb944e7a117f821822a6018d27e666ad9e761cc0d0c6901ae384b1d1d19002ee117d22695e7cfbca62e8038adcdc11d902af58f15a61f44a0e3850b8547b5 SHA512 47ede587a6fd10a8f68deae0df0eb380a51499ed15b736905054619eefd25f018189f656384fa8d72093f622e0a9871cfdea81796a9f9071e797086182f8bd57
|
||||||
@@ -15,7 +15,7 @@ diff -Naur a/fpm.toml b/fpm.toml
|
|||||||
-rev = "ea6bbffc1c2fb0885e994d37ccf0029c99b19f24"
|
-rev = "ea6bbffc1c2fb0885e994d37ccf0029c99b19f24"
|
||||||
+[build]
|
+[build]
|
||||||
+external-modules = ["tomlf", "m_cli2"]
|
+external-modules = ["tomlf", "m_cli2"]
|
||||||
+link = ["toml-f","m_cli2"]
|
+link = ["toml-f","M_CLI2"]
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
name = "cli-test"
|
name = "cli-test"
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ RESTRICT="!test? ( test )"
|
|||||||
|
|
||||||
CDEPEND="
|
CDEPEND="
|
||||||
dev-libs/toml-f:0/2
|
dev-libs/toml-f:0/2
|
||||||
dev-libs/m_cli2
|
dev-libs/M_CLI2
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
@@ -88,7 +88,7 @@ src_compile() {
|
|||||||
"$(tc-getFC)" -J "${BSDIR}" -o "${BSDIR}"/fpm "${BSDIR}/${P}.F90" || die
|
"$(tc-getFC)" -J "${BSDIR}" -o "${BSDIR}"/fpm "${BSDIR}/${P}.F90" || die
|
||||||
|
|
||||||
# Use the bootstrap binary to build the feature complete fpm version
|
# Use the bootstrap binary to build the feature complete fpm version
|
||||||
"${BSDIR}"/fpm build --verbose --compiler "$(tc-getFC)" --flag "${FCFLAGS} ${OMPFLAG} -I/usr/include/toml-f -I/usr/include/m_cli2" \
|
"${BSDIR}"/fpm build --verbose --compiler "$(tc-getFC)" --flag "${FCFLAGS} ${OMPFLAG} -I/usr/include/toml-f -I/usr/include/M_CLI2" \
|
||||||
--c-compiler "$(tc-getCC)" --c-flag "${CFLAGS}" \
|
--c-compiler "$(tc-getCC)" --c-flag "${CFLAGS}" \
|
||||||
--cxx-compiler "$(tc-getCXX)" --cxx-flag "${CXXFLAGS}" \
|
--cxx-compiler "$(tc-getCXX)" --cxx-flag "${CXXFLAGS}" \
|
||||||
--archiver "$(tc-getAR)" --link-flag "${LDFLAGS}" || die
|
--archiver "$(tc-getAR)" --link-flag "${LDFLAGS}" || die
|
||||||
@@ -100,7 +100,7 @@ src_compile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_test() {
|
src_test() {
|
||||||
"${BSDIR}"/fpm test --verbose --compiler "$(tc-getFC)" --flag "${FCFLAGS} ${OMPFLAG} -I/usr/include/toml-f -I/usr/include/m_cli2" \
|
"${BSDIR}"/fpm test --verbose --compiler "$(tc-getFC)" --flag "${FCFLAGS} ${OMPFLAG} -I/usr/include/toml-f -I/usr/include/M_CLI2" \
|
||||||
--c-compiler "$(tc-getCC)" --c-flag "${CFLAGS}" \
|
--c-compiler "$(tc-getCC)" --c-flag "${CFLAGS}" \
|
||||||
--cxx-compiler "$(tc-getCXX)" --cxx-flag "${CXXFLAGS}" \
|
--cxx-compiler "$(tc-getCXX)" --cxx-flag "${CXXFLAGS}" \
|
||||||
--archiver="$(tc-getAR)" --link-flag "${LDFLAGS}" || die
|
--archiver="$(tc-getAR)" --link-flag "${LDFLAGS}" || die
|
||||||
@@ -109,7 +109,7 @@ src_test() {
|
|||||||
src_install() {
|
src_install() {
|
||||||
# Set prefix and pass all used env flags to avoid recompiling with default values
|
# Set prefix and pass all used env flags to avoid recompiling with default values
|
||||||
"${BSDIR}"/fpm install --prefix "${ED}/usr" \
|
"${BSDIR}"/fpm install --prefix "${ED}/usr" \
|
||||||
--compiler "$(tc-getFC)" --flag "${FCFLAGS} ${OMPFLAG} -I/usr/include/toml-f -I/usr/include/m_cli2" \
|
--compiler "$(tc-getFC)" --flag "${FCFLAGS} ${OMPFLAG} -I/usr/include/toml-f -I/usr/include/M_CLI2" \
|
||||||
--c-compiler "$(tc-getCC)" --c-flag "${CFLAGS}" \
|
--c-compiler "$(tc-getCC)" --c-flag "${CFLAGS}" \
|
||||||
--cxx-compiler "$(tc-getCXX)" --cxx-flag "${CXXFLAGS}" \
|
--cxx-compiler "$(tc-getCXX)" --cxx-flag "${CXXFLAGS}" \
|
||||||
--archiver="$(tc-getAR)" --link-flag "${LDFLAGS}" || die
|
--archiver="$(tc-getAR)" --link-flag "${LDFLAGS}" || die
|
||||||
Reference in New Issue
Block a user