summaryrefslogtreecommitdiff
path: root/dev-vcs/stagit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-09 15:43:36 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-09 15:43:36 +0100
commit2719f73b6813d11d13a9650cdd2ab8ec6e69385d (patch)
tree8c816148bcbd22757d892089c989ae614eae4f5a /dev-vcs/stagit
parent0f558761aa2dee1017b4751e4017205e015a9560 (diff)
gentoo resync : 09.07.2022
Diffstat (limited to 'dev-vcs/stagit')
-rw-r--r--dev-vcs/stagit/Manifest4
-rw-r--r--dev-vcs/stagit/files/stagit-1.1-pkg-config.patch18
-rw-r--r--dev-vcs/stagit/metadata.xml8
-rw-r--r--dev-vcs/stagit/stagit-1.1.ebuild26
4 files changed, 56 insertions, 0 deletions
diff --git a/dev-vcs/stagit/Manifest b/dev-vcs/stagit/Manifest
new file mode 100644
index 000000000000..e91b957c3f3d
--- /dev/null
+++ b/dev-vcs/stagit/Manifest
@@ -0,0 +1,4 @@
+AUX stagit-1.1-pkg-config.patch 578 BLAKE2B b25ff1e3bbb4eed09aec97bef30f965a3cdf50ebd05ee42e65aaefc9b090f38debadcbe4e81dfac7af3b00765d8905bcecbf1477e1df9b5a607f69a2576cd74d SHA512 19d2336729eb34fc8ddb330a8655e9d1ba736d415c2735a21cc9ac6ba66cbf48e52fe8c72e67c9eb8e5b6a7427c51ed3a89b2ebef5f400788a1f60e7109edded
+DIST stagit-1.1.tar.gz 19648 BLAKE2B f77f7d79a475d5e7eda734fb0dc5f4006156df90c0019b0cc664efe8a5e0b988e2c9f0bf36efcbabbb06d7c59e6ad81434184c2c73bfef28849261251eb052b8 SHA512 e75d47b84d2783f7396a932b402a4dd36572027931559eae908861f9b8c658f43f5110bdfc81c5a0b65be3a0c53939ba9adabcc1e36fe88a6dab54b929526e0f
+EBUILD stagit-1.1.ebuild 631 BLAKE2B c7cd3ad40e86f7be2f65571c5d425e6c8a5454456878f5784abb8eb44f7a240bda5beb57631ecfda4287451370b1a290b5b9ac8e35ea9a95ff38c17e19ae05dd SHA512 758631e6fa7f44aae36c4a39b5f87b14e121bc718f9a0d0ca00bc2c4815474c90fcd11526511aa0933297630f40ba76155224e84b7017a5effec8b0fa6db749f
+MISC metadata.xml 248 BLAKE2B 2a8d109f789d4f561986cfd5830c49c96b715e2fd50c0340e5c7ca385f72d09c0accf9102e1e1338e971400861d3baa95c083623231cbe96dc9e8163639dee25 SHA512 46a1388868fb5dcf5e3f85cbe8438d441c8a1ff291fcceb1cb4cf20a505e84e945c73967342eb7faadbaa51a7630977d9d447fe16505395fe7a05024e6242185
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
+}