1 |
commit: 5a1bcdacef86ba2ae53ae6fb4b6d500b215c6925 |
2 |
Author: Mykyta Holubakha <hilobakho <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Jan 26 00:33:52 2018 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 6 09:56:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a1bcdac |
7 |
|
8 |
app-text/scdoc: New package |
9 |
|
10 |
initial version 1.2.3 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/6961 |
12 |
|
13 |
app-text/scdoc/Manifest | 1 + |
14 |
app-text/scdoc/metadata.xml | 15 +++++++++++++++ |
15 |
app-text/scdoc/scdoc-1.2.3.ebuild | 38 ++++++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 54 insertions(+) |
17 |
|
18 |
diff --git a/app-text/scdoc/Manifest b/app-text/scdoc/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..23793d69d4d |
21 |
--- /dev/null |
22 |
+++ b/app-text/scdoc/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST scdoc-1.2.3.tar.xz 6920 BLAKE2B 7cafe512016dc7dcfa56216cac3f3fd99ef05dfefb67ce8dba9726c8d60b49829f444f66c62c4ee9a0d2464749510ba60ac0b72996c656e3d66aef80e5ef0546 SHA512 1d5170d2a73ebccdb83ffffbec5ec431aab54b02eea5b062d0210c98636d059dc1fa57bfc1573a0e510cc8849759f6bb6462e3f5a78f22273a10bf47f2e0a2c6 |
25 |
|
26 |
diff --git a/app-text/scdoc/metadata.xml b/app-text/scdoc/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000000..442a873c810 |
29 |
--- /dev/null |
30 |
+++ b/app-text/scdoc/metadata.xml |
31 |
@@ -0,0 +1,15 @@ |
32 |
+<?xml version='1.0' encoding='UTF-8'?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>hilobakho@×××××.com</email> |
37 |
+ <name>Mykyta Holubakha</name> |
38 |
+ </maintainer> |
39 |
+ <maintainer type="project"> |
40 |
+ <email>proxy-maint@g.o</email> |
41 |
+ <name>Proxy Maintainers</name> |
42 |
+ </maintainer> |
43 |
+ <upstream> |
44 |
+ <remote-id type="github">swaywm/sway</remote-id> |
45 |
+ </upstream> |
46 |
+</pkgmetadata> |
47 |
|
48 |
diff --git a/app-text/scdoc/scdoc-1.2.3.ebuild b/app-text/scdoc/scdoc-1.2.3.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..fb88bae39fe |
51 |
--- /dev/null |
52 |
+++ b/app-text/scdoc/scdoc-1.2.3.ebuild |
53 |
@@ -0,0 +1,38 @@ |
54 |
+# Copyright 1999-2018 Gentoo Foundation |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=6 |
58 |
+ |
59 |
+inherit toolchain-funcs |
60 |
+ |
61 |
+DESCRIPTION="Standalone tool for generating man pages with a simple syntax" |
62 |
+HOMEPAGE="https://git.sr.ht/~sircmpwn/scdoc" |
63 |
+SRC_URI="https://git.sr.ht/~sircmpwn/scdoc/snapshot/${P}.tar.xz" |
64 |
+ |
65 |
+LICENSE="MIT" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64 ~x86" |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ default |
71 |
+ |
72 |
+ sed -i 's/-Werror//' Makefile || die 'Failed to remove -Werror' |
73 |
+ sed -i 's/CFLAGS=/CFLAGS+=/' Makefile || die 'Failed to patch makefile' |
74 |
+} |
75 |
+ |
76 |
+src_compile() { |
77 |
+ MY_HS="./scdoc" |
78 |
+ if tc-is-cross-compiler; then |
79 |
+ tc-export_build_env |
80 |
+ MY_HS="./hostscdoc" |
81 |
+ MAKEOPTS+=" HOST_SCDOC=./hostscdoc" |
82 |
+ emake scdoc OUTDIR="${S}/.build.host" CC=$(tc-getBUILD_CC) \ |
83 |
+ CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}" |
84 |
+ mv scdoc hostscdoc || die 'Failed to rename host scdoc' |
85 |
+ fi |
86 |
+ emake LDFLAGS="${LDFLAGS}" HOST_SCDOC="${MY_HS}" |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ emake DESTDIR="${D}" HOST_SCDOC="${MY_HS}" install |
91 |
+} |