diff options
author | Matthew Smith <matthew@gentoo.org> | 2022-07-05 21:02:22 +0100 |
---|---|---|
committer | Matthew Smith <matthew@gentoo.org> | 2022-07-05 21:02:22 +0100 |
commit | cf60560fddada505ca817ac1929296e7040757e1 (patch) | |
tree | c9d68d0062dac6b3b371c5862f337a5adc45128f /dev-vcs/stagit | |
parent | dev-java/jakarta-mail-api: Keyword 2.1.0 arm, #856580 (diff) | |
download | gentoo-cf60560fddada505ca817ac1929296e7040757e1.tar.gz gentoo-cf60560fddada505ca817ac1929296e7040757e1.tar.bz2 gentoo-cf60560fddada505ca817ac1929296e7040757e1.zip |
dev-vcs/stagit: new package, add 1.1
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'dev-vcs/stagit')
-rw-r--r-- | dev-vcs/stagit/Manifest | 1 | ||||
-rw-r--r-- | dev-vcs/stagit/files/stagit-1.1-pkg-config.patch | 18 | ||||
-rw-r--r-- | dev-vcs/stagit/metadata.xml | 8 | ||||
-rw-r--r-- | dev-vcs/stagit/stagit-1.1.ebuild | 26 |
4 files changed, 53 insertions, 0 deletions
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 +} |