public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/m_cli2/
@ 2022-11-19  0:10 Sergey Torokhov
  0 siblings, 0 replies; only message in thread
From: Sergey Torokhov @ 2022-11-19  0:10 UTC (permalink / raw
  To: gentoo-commits

commit:     4d4cd15ed2a5192f4a66ec4fc503461c1d6d349f
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Sat Nov 19 00:04:14 2022 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Sat Nov 19 00:04:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4d4cd15e

dev-util/m_cli2: new package, version 1.0.0_p2022116

DEPEND for dev-util/fpm

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 dev-util/m_cli2/Manifest                      |  1 +
 dev-util/m_cli2/m_cli2-1.0.0_p20221116.ebuild | 52 +++++++++++++++++++++++++++
 dev-util/m_cli2/metadata.xml                  | 11 ++++++
 3 files changed, 64 insertions(+)

diff --git a/dev-util/m_cli2/Manifest b/dev-util/m_cli2/Manifest
new file mode 100644
index 000000000..a4c3673e0
--- /dev/null
+++ b/dev-util/m_cli2/Manifest
@@ -0,0 +1 @@
+DIST m_cli2-1.0.0_p20221116.tar.gz 13771712 BLAKE2B a97eb944e7a117f821822a6018d27e666ad9e761cc0d0c6901ae384b1d1d19002ee117d22695e7cfbca62e8038adcdc11d902af58f15a61f44a0e3850b8547b5 SHA512 47ede587a6fd10a8f68deae0df0eb380a51499ed15b736905054619eefd25f018189f656384fa8d72093f622e0a9871cfdea81796a9f9071e797086182f8bd57

diff --git a/dev-util/m_cli2/m_cli2-1.0.0_p20221116.ebuild b/dev-util/m_cli2/m_cli2-1.0.0_p20221116.ebuild
new file mode 100644
index 000000000..6065f9cd2
--- /dev/null
+++ b/dev-util/m_cli2/m_cli2-1.0.0_p20221116.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FORTRAN_STANDARD="2003"
+
+inherit fortran-2 toolchain-funcs
+
+m_cli2_sha="90a1a146e19c8ad37b0469b8cbd04bc28eb67a50"
+
+DESCRIPTION="M_CLI2 - parse Unix-like command line arguments from Fortran"
+HOMEPAGE="https://github.com/urbanjost/M_CLI2"
+SRC_URI="https://github.com/urbanjost/M_CLI2/archive/${m_cli2_sha}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+S="${WORKDIR}/M_CLI2-${m_cli2_sha}/src"
+
+src_prepare() {
+	default
+
+#	# Set Fortran FLAGS
+	sed -i -e "s/F90FLAGS := .*$/F90FLAGS := ${FCFLAGS} -fPIC/" Makefile || die
+}
+
+src_compile() {
+	case $(tc-getFC) in
+		*gfortran* )
+			emake clean
+			emake FC90=$(tc-getFC) gfortran
+			$(tc-getFC) -Wl,-soname,lib"${PN}".so.1 -shared -o lib"${PN}".so.1 M_CLI2.o;;
+		* )
+			die "Sorry, only GNU gfortran is currently supported in the ebuild" ;;
+	esac
+}
+
+src_test() {
+	emake test
+}
+
+src_install() {
+	insinto "/usr/include/${PN}"
+	doins "${PN}.mod"
+	dolib.so "lib${PN}.so.1"
+	dosym  "lib${PN}.so.1" "/usr/$(get_libdir)/lib${PN}.so"
+}

diff --git a/dev-util/m_cli2/metadata.xml b/dev-util/m_cli2/metadata.xml
new file mode 100644
index 000000000..77c1f40f9
--- /dev/null
+++ b/dev-util/m_cli2/metadata.xml
@@ -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">urbanjost/M_CLI2</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-19  0:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-19  0:10 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/m_cli2/ Sergey Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox