1 |
commit: cf60560fddada505ca817ac1929296e7040757e1 |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 20:02:22 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 20:02:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf60560f |
7 |
|
8 |
dev-vcs/stagit: new package, add 1.1 |
9 |
|
10 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
11 |
|
12 |
dev-vcs/stagit/Manifest | 1 + |
13 |
dev-vcs/stagit/files/stagit-1.1-pkg-config.patch | 18 ++++++++++++++++ |
14 |
dev-vcs/stagit/metadata.xml | 8 ++++++++ |
15 |
dev-vcs/stagit/stagit-1.1.ebuild | 26 ++++++++++++++++++++++++ |
16 |
4 files changed, 53 insertions(+) |
17 |
|
18 |
diff --git a/dev-vcs/stagit/Manifest b/dev-vcs/stagit/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000000..084c0188e2bb |
21 |
--- /dev/null |
22 |
+++ b/dev-vcs/stagit/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST stagit-1.1.tar.gz 19648 BLAKE2B f77f7d79a475d5e7eda734fb0dc5f4006156df90c0019b0cc664efe8a5e0b988e2c9f0bf36efcbabbb06d7c59e6ad81434184c2c73bfef28849261251eb052b8 SHA512 e75d47b84d2783f7396a932b402a4dd36572027931559eae908861f9b8c658f43f5110bdfc81c5a0b65be3a0c53939ba9adabcc1e36fe88a6dab54b929526e0f |
25 |
|
26 |
diff --git a/dev-vcs/stagit/files/stagit-1.1-pkg-config.patch b/dev-vcs/stagit/files/stagit-1.1-pkg-config.patch |
27 |
new file mode 100644 |
28 |
index 000000000000..f4bc82d30502 |
29 |
--- /dev/null |
30 |
+++ b/dev-vcs/stagit/files/stagit-1.1-pkg-config.patch |
31 |
@@ -0,0 +1,18 @@ |
32 |
+From a0fd5bc899aa6552f14a64adcce24467376062c3 Mon Sep 17 00:00:00 2001 |
33 |
+From: Matthew Smith <matthew@g.o> |
34 |
+Date: Tue, 5 Jul 2022 20:52:35 +0100 |
35 |
+Subject: [PATCH] build: Use pkg-config to find libgit2 |
36 |
+ |
37 |
+--- a/Makefile |
38 |
++++ b/Makefile |
39 |
+@@ -8,8 +8,8 @@ PREFIX = /usr/local |
40 |
+ MANPREFIX = ${PREFIX}/man |
41 |
+ DOCPREFIX = ${PREFIX}/share/doc/${NAME} |
42 |
+ |
43 |
+-LIBGIT_INC = -I/usr/local/include |
44 |
+-LIBGIT_LIB = -L/usr/local/lib -lgit2 |
45 |
++LIBGIT_INC = $(shell pkg-config --cflags libgit2) |
46 |
++LIBGIT_LIB = $(shell pkg-config --libs libgit2) |
47 |
+ |
48 |
+ # use system flags. |
49 |
+ STAGIT_CFLAGS = ${LIBGIT_INC} ${CFLAGS} |
50 |
|
51 |
diff --git a/dev-vcs/stagit/metadata.xml b/dev-vcs/stagit/metadata.xml |
52 |
new file mode 100644 |
53 |
index 000000000000..e91ef31902f9 |
54 |
--- /dev/null |
55 |
+++ b/dev-vcs/stagit/metadata.xml |
56 |
@@ -0,0 +1,8 @@ |
57 |
+<?xml version="1.0" encoding="UTF-8"?> |
58 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
59 |
+<pkgmetadata> |
60 |
+ <maintainer type="person"> |
61 |
+ <email>matthew@g.o</email> |
62 |
+ <name>Matthew Smith</name> |
63 |
+ </maintainer> |
64 |
+</pkgmetadata> |
65 |
|
66 |
diff --git a/dev-vcs/stagit/stagit-1.1.ebuild b/dev-vcs/stagit/stagit-1.1.ebuild |
67 |
new file mode 100644 |
68 |
index 000000000000..c820b61e2951 |
69 |
--- /dev/null |
70 |
+++ b/dev-vcs/stagit/stagit-1.1.ebuild |
71 |
@@ -0,0 +1,26 @@ |
72 |
+# Copyright 2022 Gentoo Authors |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+ |
75 |
+EAPI=8 |
76 |
+ |
77 |
+DESCRIPTION="Generates static HTML pages for a Git repository" |
78 |
+HOMEPAGE="https://codemadness.org/stagit.html" |
79 |
+SRC_URI="https://codemadness.org/releases/stagit/${P}.tar.gz" |
80 |
+ |
81 |
+LICENSE="MIT" |
82 |
+SLOT="0" |
83 |
+KEYWORDS="~amd64" |
84 |
+ |
85 |
+RDEPEND="dev-libs/libgit2:=" |
86 |
+DEPEND="${RDEPEND}" |
87 |
+BDEPEND="virtual/pkgconfig" |
88 |
+ |
89 |
+PATCHES=( "${FILESDIR}"/${PN}-1.1-pkg-config.patch ) |
90 |
+ |
91 |
+src_install() { |
92 |
+ emake DESTDIR="${D}" \ |
93 |
+ DOCPREFIX="${EPREFIX}"/usr/share/doc/${PF} \ |
94 |
+ MANPREFIX="${EPREFIX}"/usr/share/man \ |
95 |
+ PREFIX="${EPREFIX}"/usr \ |
96 |
+ install |
97 |
+} |