1 |
binki 13/07/29 04:55:01 |
2 |
|
3 |
Added: metadata.xml discount-2.1.6.ebuild Manifest |
4 |
ChangeLog |
5 |
Log: |
6 |
Add app-text/discount for bug #294000 by Egil Hanger and jauhien. Imported from sunrise with fixes including CFLAGS, LDFLAGS, CPPFLAGS, sandbox, and shared/dynamic library support. Prefixed some generically-named binaries with 'mkd'. |
7 |
|
8 |
(Portage version: 2.2.0_alpha177-r1/cvs/Linux x86_64, signed Manifest commit with key 743A52E86BA81050) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 app-text/discount/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/discount/metadata.xml?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/discount/metadata.xml?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
<?xml version="1.0" encoding="UTF-8"?> |
19 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
20 |
<pkgmetadata> |
21 |
<maintainer> |
22 |
<email>binki@g.o</email> |
23 |
<name>Nathan Phillip Brink</name> |
24 |
</maintainer> |
25 |
</pkgmetadata> |
26 |
|
27 |
|
28 |
|
29 |
1.1 app-text/discount/discount-2.1.6.ebuild |
30 |
|
31 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/discount/discount-2.1.6.ebuild?rev=1.1&view=markup |
32 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/discount/discount-2.1.6.ebuild?rev=1.1&content-type=text/plain |
33 |
|
34 |
Index: discount-2.1.6.ebuild |
35 |
=================================================================== |
36 |
# Copyright 1999-2013 Gentoo Foundation |
37 |
# Distributed under the terms of the GNU General Public License v2 |
38 |
# $Header: /var/cvsroot/gentoo-x86/app-text/discount/discount-2.1.6.ebuild,v 1.1 2013/07/29 04:55:00 binki Exp $ |
39 |
|
40 |
EAPI=5 |
41 |
|
42 |
inherit eutils multilib |
43 |
|
44 |
DESCRIPTION="An implementation of John Gruber's Markdown text to html language written in C" |
45 |
HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/" |
46 |
SRC_URI="http://www.pell.portland.or.us/~orc/Code/${PN}/${P}.tar.bz2" |
47 |
|
48 |
LICENSE="BSD" |
49 |
SLOT="0" |
50 |
KEYWORDS="~amd64 ~x86" |
51 |
IUSE="minimal" |
52 |
|
53 |
src_prepare() { |
54 |
epatch "${FILESDIR}"/${P}-portage-multilib-CFLAGS.patch |
55 |
|
56 |
# for QA, we remove the Makefile’s usage of install -s. |
57 |
# Drop ldconfig invocation. |
58 |
# Force “librarian.sh” to respect LDFLAGS ($FLAGS should have CFLAGS |
59 |
# at that point). |
60 |
sed -i \ |
61 |
-e '/INSTALL_PROGRAM/s,-s ,,' \ |
62 |
-e 's/\(LDCONFIG=\).*/\1:/' \ |
63 |
-e 's/\(.\)\$FLAGS/& \1$LDFLAGS/' \ |
64 |
configure.inc || die "sed configure.inc failed" |
65 |
|
66 |
# Add LDFLAGS and CPPFLAGS hackily. |
67 |
sed -i \ |
68 |
-e 's/^CC[ \t]*=.*/& $(CPPFLAGS)/' \ |
69 |
-e 's/^LFLAGS[ \t]*=.*/& $(LDFLAGS)/' \ |
70 |
Makefile.in || die "Cannot fix LDFLAGS and CPPFLAGS" |
71 |
} |
72 |
|
73 |
src_configure() { |
74 |
./configure.sh \ |
75 |
--libdir="${EPREFIX}"usr/"$(get_libdir)" \ |
76 |
--prefix="${EPREFIX}"usr \ |
77 |
--mandir="${EPREFIX}"usr/share/man \ |
78 |
--shared \ |
79 |
$(usex minimal '' --enable-all-features) \ |
80 |
|| die |
81 |
} |
82 |
|
83 |
src_install() { |
84 |
emake DESTDIR="${D}" $(usex minimal install install.everything) |
85 |
|
86 |
DISCOUNT_EBUILD_RENAMED_BINARIES=() |
87 |
local bin |
88 |
for bin in "${ED}"usr/bin/*; do |
89 |
[[ ${bin} = */markdown || ${bin} = */mkd* ]] && continue |
90 |
DISCOUNT_EBUILD_RENAMED_BINARIES+=(${bin##*/}) |
91 |
mv "${bin}" "${bin%/*}/mkd${bin##*/}" || die |
92 |
mv "${ED}"usr/share/man/man1/{,mkd}${bin##*/}.1 || die |
93 |
done |
94 |
} |
95 |
|
96 |
pkg_postinst() { |
97 |
if [[ ${DISCOUNT_EBUILD_RENAMED_BINARIES} ]]; then |
98 |
local bin |
99 |
elog "Some discount binaries with overly-generic names have been" |
100 |
elog "prefixed. Please see" |
101 |
elog "https://github.com/Orc/discount/issues/81 for discussion." |
102 |
for bin in "${DISCOUNT_EBUILD_RENAMED_BINARIES[@]}"; do |
103 |
elog " Renamed '${bin}' to 'mkd${bin}'." |
104 |
done |
105 |
fi |
106 |
} |
107 |
|
108 |
|
109 |
|
110 |
1.1 app-text/discount/Manifest |
111 |
|
112 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/discount/Manifest?rev=1.1&view=markup |
113 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/discount/Manifest?rev=1.1&content-type=text/plain |
114 |
|
115 |
Index: Manifest |
116 |
=================================================================== |
117 |
AUX discount-2.1.6-portage-multilib-CFLAGS.patch 1975 SHA256 a24fc76d0c45c3afd34f9c19ddcc905b78d540cf39dccd7111cfad785e76f996 SHA512 7e2546d09aa4f4ca4987cb71b388e494eede4c326af1cd7107e70f74d73038b64a5defef59fd50de8108101f36b16562e468b690d99e5f84a278187bc67e56ad WHIRLPOOL 8a94efd0ebc27ad083737a5dfc6ae169e66eb0ae4b7fd057ae879c5c09a18699164b140b8a06bbc8def1cecb44fdb6ea640986587309156ab34a5b868b2698e9 |
118 |
DIST discount-2.1.6.tar.bz2 83823 SHA256 702bb29e17e387f82e40fae062d5e4939bc6fb22dcf53e6109982a5faa110796 SHA512 75e2fcc31f670bab77a3658a684054971998e91ad14743814480a4d24a59285dea1fe922d16c8d1c868250c417963a80282b8fe278021240ba424b840dd4df8e WHIRLPOOL 9f519c44df4bc5300729dd0f51fbcb20f957da68d03b670307bfd51c0d994b5d2b765eac6e17bba8119bb095277ce5dfbad185599bdeca834c4982eb813d7a79 |
119 |
EBUILD discount-2.1.6.ebuild 2013 SHA256 be22e2fa58ee2d52091fa7270008a54649455d2232c8c2ffc3cec3d0f4524b0b SHA512 a0cf0badeaa2d08b943a293e089091e49df79963f4e802695fa90ffb85b9d0c8304f3902f5beffc680bea7b2019412926417439d73d9f43f6112bab5571f105a WHIRLPOOL 763e3a5c93ac83a65ff376b20ec67fb4147df712259e1b5688bee3cb7ecdad080187d5802239bc7455711ca76360f83b0ff1124b96a567a4acded057e25acfc2 |
120 |
MISC ChangeLog 540 SHA256 8f73b8e827c711fedbb618a8e449ea34aec9c95e4826e905033cfe0805add4ad SHA512 bc1ab58ac656270fc9c002c8a24f04a8676c265d3ce91102cec0a0aa2d412bd7c8bc5ee2f0c4d61a37d2cf2b8479724eccc37df1e3a10927f66aab4e6323a45d WHIRLPOOL 10c9ecba2fb061c36a4c04ca19c777086750714b797cc62311d05393890e08274de2cd7b8ae60f69d295fff9e8a5b15496ed591d650593d19277ce3b357e3280 |
121 |
MISC metadata.xml 244 SHA256 f5bde347c36c74889cbb32d29f06766c08eb3df6e0c468f00295681382c48457 SHA512 100f9b2326c73dff673bda4c5dfc0dd28bc756d80a039c1d3ac19124599a99e18b841ab28da191a79c6498c2dc157c0fed7639c855e2520cc3933f03e3de8a21 WHIRLPOOL 409c270895ffd477768bc9c329c9297c106d3f9572b84051ae66757f4d87c6f0a0b7d71aff602ff41b14400fc0afbf3990cbf1768a63f01fda6854043b66a35b |
122 |
|
123 |
|
124 |
|
125 |
1.1 app-text/discount/ChangeLog |
126 |
|
127 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/discount/ChangeLog?rev=1.1&view=markup |
128 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/discount/ChangeLog?rev=1.1&content-type=text/plain |
129 |
|
130 |
Index: ChangeLog |
131 |
=================================================================== |
132 |
# ChangeLog for app-text/discount |
133 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
134 |
# $Header: /var/cvsroot/gentoo-x86/app-text/discount/ChangeLog,v 1.1 2013/07/29 04:55:01 binki Exp $ |
135 |
|
136 |
*discount-2.1.6 (29 Jul 2013) |
137 |
|
138 |
29 Jul 2013; Nathan Phillip Brink <binki@g.o> +discount-2.1.6.ebuild, |
139 |
+files/discount-2.1.6-portage-multilib-CFLAGS.patch, +metadata.xml: |
140 |
Add app-text/discount for bug #294000 by Egil Hanger and jauhien. Imported |
141 |
from sunrise with fixes including CFLAGS, LDFLAGS, CPPFLAGS, sandbox, and |
142 |
shared/dynamic library support. Prefixed some generically-named binaries with |
143 |
'mkd'. |