public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: dev-util/makefile2graph/
@ 2018-04-21  9:42 Martin Mokrejs
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Mokrejs @ 2018-04-21  9:42 UTC (permalink / raw
  To: gentoo-commits

commit:     4ac6404be19df2a7d5e6c80eb6e03ef8bf3a5c32
Author:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Sat Apr 21 09:41:48 2018 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Sat Apr 21 09:41:48 2018 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=4ac6404b

dev-util/makefile2graph: new package

Is needed by sci-biology/tigmint

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 dev-util/makefile2graph/makefile2graph-1.5.0.ebuild | 21 +++++++++++++++++++++
 dev-util/makefile2graph/metadata.xml                | 12 ++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/dev-util/makefile2graph/makefile2graph-1.5.0.ebuild b/dev-util/makefile2graph/makefile2graph-1.5.0.ebuild
new file mode 100644
index 000000000..a934ce2cb
--- /dev/null
+++ b/dev-util/makefile2graph/makefile2graph-1.5.0.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Create a graph of dependencies from GNU Make"
+HOMEPAGE="https://github.com/lindenb/makefile2graph"
+SRC_URI="https://github.com/lindenb/makefile2graph/archive/v1.5.0.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare(){
+	sed -e 's#/usr/local#/usr#' -i Makefile || die
+	default
+}

diff --git a/dev-util/makefile2graph/metadata.xml b/dev-util/makefile2graph/metadata.xml
new file mode 100644
index 000000000..138cb7705
--- /dev/null
+++ b/dev-util/makefile2graph/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>mmokrejs@fold.natur.cuni.cz</email>
+		<name>Martin Mokrejs</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>sci-biology@gentoo.org</email>
+		<name>Gentoo Biology Project</name>
+	</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/makefile2graph/
@ 2021-01-27  2:15 Aisha Tammy
  0 siblings, 0 replies; 2+ messages in thread
From: Aisha Tammy @ 2021-01-27  2:15 UTC (permalink / raw
  To: gentoo-commits

commit:     d16be1a53585cc6995a55adcb152e3d387673e31
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Wed Jan 27 02:15:16 2021 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Wed Jan 27 02:15:37 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=d16be1a5

dev-util/makefile2graph: bump to eapi 7 + live ebuild

also add tests

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 .../makefile2graph/makefile2graph-1.5.0.ebuild     | 31 ++++++++++++++-----
 dev-util/makefile2graph/makefile2graph-9999.ebuild | 36 ++++++++++++++++++++++
 2 files changed, 59 insertions(+), 8 deletions(-)

diff --git a/dev-util/makefile2graph/makefile2graph-1.5.0.ebuild b/dev-util/makefile2graph/makefile2graph-1.5.0.ebuild
index a934ce2cb..3d5943c64 100644
--- a/dev-util/makefile2graph/makefile2graph-1.5.0.ebuild
+++ b/dev-util/makefile2graph/makefile2graph-1.5.0.ebuild
@@ -1,21 +1,36 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
+
+inherit toolchain-funcs
 
 DESCRIPTION="Create a graph of dependencies from GNU Make"
 HOMEPAGE="https://github.com/lindenb/makefile2graph"
-SRC_URI="https://github.com/lindenb/makefile2graph/archive/v1.5.0.tar.gz -> ${P}.tar.gz"
+if [[ "${PV}" = 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/lindenb/makefile2graph"
+else
+	SRC_URI="https://github.com/lindenb/makefile2graph/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
+RESTRICT="!test? ( test )"
 
-DEPEND=""
-RDEPEND="${DEPEND}"
+BDEPEND="test? ( media-gfx/graphviz )"
 
 src_prepare(){
-	sed -e 's#/usr/local#/usr#' -i Makefile || die
+	sed -e "s|/usr/local|${EPREFIX}/usr|" -i Makefile || die
 	default
 }
+
+src_compile() {
+	CC="$(tc-getCC)" default
+}
+
+src_test() {
+	CC="$(tc-getCC)" emake test
+}

diff --git a/dev-util/makefile2graph/makefile2graph-9999.ebuild b/dev-util/makefile2graph/makefile2graph-9999.ebuild
new file mode 100644
index 000000000..3d5943c64
--- /dev/null
+++ b/dev-util/makefile2graph/makefile2graph-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Create a graph of dependencies from GNU Make"
+HOMEPAGE="https://github.com/lindenb/makefile2graph"
+if [[ "${PV}" = 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/lindenb/makefile2graph"
+else
+	SRC_URI="https://github.com/lindenb/makefile2graph/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( media-gfx/graphviz )"
+
+src_prepare(){
+	sed -e "s|/usr/local|${EPREFIX}/usr|" -i Makefile || die
+	default
+}
+
+src_compile() {
+	CC="$(tc-getCC)" default
+}
+
+src_test() {
+	CC="$(tc-getCC)" emake test
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-27  2:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-27  2:15 [gentoo-commits] proj/sci:master commit in: dev-util/makefile2graph/ Aisha Tammy
  -- strict thread matches above, loose matches on Subject: below --
2018-04-21  9:42 Martin Mokrejs

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