* [gentoo-commits] repo/gentoo:master commit in: dev-vcs/stagit/files/, dev-vcs/stagit/
@ 2022-07-05 20:03 Matthew Smith
0 siblings, 0 replies; only message in thread
From: Matthew Smith @ 2022-07-05 20:03 UTC (permalink / raw
To: gentoo-commits
commit: cf60560fddada505ca817ac1929296e7040757e1
Author: Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 5 20:02:22 2022 +0000
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Tue Jul 5 20:02:22 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf60560f
dev-vcs/stagit: new package, add 1.1
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
dev-vcs/stagit/Manifest | 1 +
dev-vcs/stagit/files/stagit-1.1-pkg-config.patch | 18 ++++++++++++++++
dev-vcs/stagit/metadata.xml | 8 ++++++++
dev-vcs/stagit/stagit-1.1.ebuild | 26 ++++++++++++++++++++++++
4 files changed, 53 insertions(+)
diff --git a/dev-vcs/stagit/Manifest b/dev-vcs/stagit/Manifest
new file mode 100644
index 000000000000..084c0188e2bb
--- /dev/null
+++ b/dev-vcs/stagit/Manifest
@@ -0,0 +1 @@
+DIST stagit-1.1.tar.gz 19648 BLAKE2B f77f7d79a475d5e7eda734fb0dc5f4006156df90c0019b0cc664efe8a5e0b988e2c9f0bf36efcbabbb06d7c59e6ad81434184c2c73bfef28849261251eb052b8 SHA512 e75d47b84d2783f7396a932b402a4dd36572027931559eae908861f9b8c658f43f5110bdfc81c5a0b65be3a0c53939ba9adabcc1e36fe88a6dab54b929526e0f
diff --git a/dev-vcs/stagit/files/stagit-1.1-pkg-config.patch b/dev-vcs/stagit/files/stagit-1.1-pkg-config.patch
new file mode 100644
index 000000000000..f4bc82d30502
--- /dev/null
+++ b/dev-vcs/stagit/files/stagit-1.1-pkg-config.patch
@@ -0,0 +1,18 @@
+From a0fd5bc899aa6552f14a64adcce24467376062c3 Mon Sep 17 00:00:00 2001
+From: Matthew Smith <matthew@gentoo.org>
+Date: Tue, 5 Jul 2022 20:52:35 +0100
+Subject: [PATCH] build: Use pkg-config to find libgit2
+
+--- a/Makefile
++++ b/Makefile
+@@ -8,8 +8,8 @@ PREFIX = /usr/local
+ MANPREFIX = ${PREFIX}/man
+ DOCPREFIX = ${PREFIX}/share/doc/${NAME}
+
+-LIBGIT_INC = -I/usr/local/include
+-LIBGIT_LIB = -L/usr/local/lib -lgit2
++LIBGIT_INC = $(shell pkg-config --cflags libgit2)
++LIBGIT_LIB = $(shell pkg-config --libs libgit2)
+
+ # use system flags.
+ STAGIT_CFLAGS = ${LIBGIT_INC} ${CFLAGS}
diff --git a/dev-vcs/stagit/metadata.xml b/dev-vcs/stagit/metadata.xml
new file mode 100644
index 000000000000..e91ef31902f9
--- /dev/null
+++ b/dev-vcs/stagit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>matthew@gentoo.org</email>
+ <name>Matthew Smith</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-vcs/stagit/stagit-1.1.ebuild b/dev-vcs/stagit/stagit-1.1.ebuild
new file mode 100644
index 000000000000..c820b61e2951
--- /dev/null
+++ b/dev-vcs/stagit/stagit-1.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Generates static HTML pages for a Git repository"
+HOMEPAGE="https://codemadness.org/stagit.html"
+SRC_URI="https://codemadness.org/releases/stagit/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-libs/libgit2:="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.1-pkg-config.patch )
+
+src_install() {
+ emake DESTDIR="${D}" \
+ DOCPREFIX="${EPREFIX}"/usr/share/doc/${PF} \
+ MANPREFIX="${EPREFIX}"/usr/share/man \
+ PREFIX="${EPREFIX}"/usr \
+ install
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-05 20:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-05 20:03 [gentoo-commits] repo/gentoo:master commit in: dev-vcs/stagit/files/, dev-vcs/stagit/ Matthew Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox