1 |
commit: b9ffc169a189e534b2d7bf0a3820fd3ea6252465 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Sat Apr 17 00:51:47 2021 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 17 00:51:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9ffc169 |
7 |
|
8 |
app-text/lowdown: New package |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
app-text/lowdown/Manifest | 1 + |
15 |
.../lowdown/files/lowdown-0.8.4-configure.patch | 19 +++++++++++++ |
16 |
app-text/lowdown/lowdown-0.8.4.ebuild | 33 ++++++++++++++++++++++ |
17 |
app-text/lowdown/metadata.xml | 8 ++++++ |
18 |
4 files changed, 61 insertions(+) |
19 |
|
20 |
diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..ba3e9378cc0 |
23 |
--- /dev/null |
24 |
+++ b/app-text/lowdown/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST lowdown-0.8.4.tar.gz 520735 BLAKE2B dc66b92f285b186ca83b9fad1cccfef9b395233ef56756e9ea9071b5502cd81dc6ce2d67d7ef265dab8953010af0907cd76125cd4442cfbfc2bcf8c63e097809 SHA512 cd46ead69ed038bf3ccf848b784327d66c78dd8adbc9ae4bfee660b9b1e52844ac8c7ad0377f8f38a3fee0d2e523f979a22d6b547c7964304accef0951cfca34 |
27 |
|
28 |
diff --git a/app-text/lowdown/files/lowdown-0.8.4-configure.patch b/app-text/lowdown/files/lowdown-0.8.4-configure.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..aaecb129b2a |
31 |
--- /dev/null |
32 |
+++ b/app-text/lowdown/files/lowdown-0.8.4-configure.patch |
33 |
@@ -0,0 +1,19 @@ |
34 |
+diff --git a/configure b/configure |
35 |
+index d1c16ab..941f185 100755 |
36 |
+--- a/configure |
37 |
++++ b/configure |
38 |
+@@ -92,12 +92,12 @@ LDADD_STATIC= |
39 |
+ CPPFLAGS= |
40 |
+ LDFLAGS= |
41 |
+ DESTDIR= |
42 |
+-PREFIX="/usr/local" |
43 |
++PREFIX="/usr" |
44 |
+ BINDIR= |
45 |
+ SBINDIR= |
46 |
+ INCLUDEDIR= |
47 |
+ LIBDIR= |
48 |
+-MANDIR= |
49 |
++MANDIR="/usr/share/man" |
50 |
+ SHAREDIR= |
51 |
+ INSTALL="install" |
52 |
+ INSTALL_PROGRAM= |
53 |
|
54 |
diff --git a/app-text/lowdown/lowdown-0.8.4.ebuild b/app-text/lowdown/lowdown-0.8.4.ebuild |
55 |
new file mode 100644 |
56 |
index 00000000000..6e601e6125f |
57 |
--- /dev/null |
58 |
+++ b/app-text/lowdown/lowdown-0.8.4.ebuild |
59 |
@@ -0,0 +1,33 @@ |
60 |
+# Copyright 2021 Gentoo Authors |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+ |
63 |
+EAPI=7 |
64 |
+ |
65 |
+inherit toolchain-funcs |
66 |
+ |
67 |
+MY_PV="VERSION_${PV//./_}" |
68 |
+DESCRIPTION="Markdown translator producing HTML5, roff documents in the ms and man formats" |
69 |
+HOMEPAGE="https://kristaps.bsd.lv/lowdown/" |
70 |
+SRC_URI="https://github.com/kristapsdz/lowdown/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz" |
71 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
72 |
+ |
73 |
+LICENSE="ISC" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64 ~x86" |
76 |
+ |
77 |
+DEPEND=" |
78 |
+ virtual/libcrypt |
79 |
+" |
80 |
+RDEPEND="${DEPEND}" |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}/lowdown-0.8.4-configure.patch" |
84 |
+) |
85 |
+ |
86 |
+src_configure() { |
87 |
+ CC="$(tc-getCC)" ./configure || die "./configure failed" |
88 |
+} |
89 |
+ |
90 |
+src_test() { |
91 |
+ emake regress |
92 |
+} |
93 |
|
94 |
diff --git a/app-text/lowdown/metadata.xml b/app-text/lowdown/metadata.xml |
95 |
new file mode 100644 |
96 |
index 00000000000..cee379b1540 |
97 |
--- /dev/null |
98 |
+++ b/app-text/lowdown/metadata.xml |
99 |
@@ -0,0 +1,8 @@ |
100 |
+<?xml version="1.0" encoding="UTF-8"?> |
101 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
102 |
+<pkgmetadata> |
103 |
+ <maintainer type="person"> |
104 |
+ <email>chutzpah@g.o</email> |
105 |
+ <name>Patrick McLean</name> |
106 |
+ </maintainer> |
107 |
+</pkgmetadata> |