diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/discount |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/discount')
-rw-r--r-- | app-text/discount/Manifest | 7 | ||||
-rw-r--r-- | app-text/discount/discount-2.1.8a-r1.ebuild | 77 | ||||
-rw-r--r-- | app-text/discount/discount-2.2.2.ebuild | 67 | ||||
-rw-r--r-- | app-text/discount/metadata.xml | 12 |
4 files changed, 163 insertions, 0 deletions
diff --git a/app-text/discount/Manifest b/app-text/discount/Manifest new file mode 100644 index 000000000000..1bd78564d3b6 --- /dev/null +++ b/app-text/discount/Manifest @@ -0,0 +1,7 @@ +DIST discount-2.1.8a.tar.bz2 85161 SHA256 c01502f4eedba8163dcd30c613ba5ee238a068f75291be127856261727e03526 SHA512 a1eba7076a27da56136b8057189c5474a36bf11f8233cbae270c8a0cf9b070332b4dcdbbbecfbfbe1d8c19961ccaf87cee27ebe855c6bc6558d8ccc423553c96 WHIRLPOOL 5d7148f6c4e9f84a5290fffafa417c4684517df6fce0deec773beb2f89b4416b7849aa50351c27338653b8950b68c3c49ba223d31e347ad7562b0cb040761114 +DIST discount-2.2.2.tar.bz2 89288 SHA256 ec7916731e3ef8516336333f8b7aa9e2af51e57c0017b1e03fa43f1ba6978f64 SHA512 67d882c0a334592230332815c543458b3c916a950bf7983f8a468fbc9f61154b4023d4bf451b76639fcb3a076506b48118f192a8e21f2535b3f49c7f081bbdf3 WHIRLPOOL 30ea10c83c54ffe43720486b8cec652d5f0ed60263904f9a8f902baa9feef7fdb4abab4ee69f0be12311c0631b53dfd8816d40cd43e755f31a2afa0eb46a3c87 +EBUILD discount-2.1.8a-r1.ebuild 2429 SHA256 615f0f325b6098ed931e1f96f6bcffcf666b6facd133b99b19ead8afef73c840 SHA512 065784f0effb3c1c24ba3b7897022480c956aa07a1288e047fb5e1a2fb51a347a7950f5ea09b4af2ef01222021297b4a8744fac70d07532651af978aebfe6118 WHIRLPOOL dfe3ea7f4047b9e0c6b12ec081ed3a97efc893cb8dfab4891ad792eded58ab4bcd79fcb8ab6fe8a20d3466cac1a86b836145e5c8860bda23f8f3614b53b0f0c3 +EBUILD discount-2.2.2.ebuild 1745 SHA256 73cfe60ccfb1b37407792188256cadbcc917b2ef1ed42b10c37e9dc170f8b50f SHA512 6bc80e256fd4d7ed70e4c525671ea2b65a746d356053f7b0d5e5ff33f43f9bdfbfe9a23ae843ef8096588c5895455d108c63d0d1f518cd7621c06c971d7ac4e7 WHIRLPOOL cd160268c82aa6cd43bb8927b9f0ce63f4026cd2472d72e6d173896b043d0f21f45778fd453b13fe85e6c4f79bfb93ae8b9a9470047b07c1c3c036ae48483be3 +MISC ChangeLog 4437 SHA256 d5163ee5d70cd238e1d1f4660191c8bcacf611acd85cc7c979c9d2574e656362 SHA512 d86bf209c399934d4e61bb6301d13a9bc0479d2177e027683e793b59428312e3b0987e3ed51a2b30a6f2c0f770361481d17cad2919f7341534939a61b02e74ad WHIRLPOOL ef0c778f497f1b471fc6be02bef58b821a4164056b1be0be1283c521922c3c7be32cce4b000dc06fed5d9f8f9f85b72c3ec56ab354f3a157595fe772887df223 +MISC ChangeLog-2015 2472 SHA256 7e63434fb1e7db783a0d961204a17cfed6790b3dd940fd238fecb5aa966520b5 SHA512 1c296077c16676cedcf2db0e4de5d17204ef2c496fd1145084be1be3aef8b711fa2c48ca287f4e04a51b6b5b02304bc6cb0a69976b05a22e8ca9d4ffca2675f8 WHIRLPOOL ebee3ca9558584c36adb5a61f11a955fe993a540f8699addbd2260c2fc39f19202128c7f54e213f0988de735619439a91fb05804f365ddd00c9d597c20ac2e0d +MISC metadata.xml 366 SHA256 c99a065110021175e05522d5512f0dbbd68597796c4ec69689cf454acb6b35ab SHA512 39d05813a4efdcd14d0f5932efc63c25ae22b83088cb1bf020863e8ab9bdb348bcbd48901a2dff3c1184dc1483ae3868d2b4a2fd942dda91150944008773db3f WHIRLPOOL e7c7f81de4d006693fe9039cbd2b4aafb72336dd19cde6fe49acd5cff16d5484825f4d605f4b823e1b541b7f50fb4fa91603aa7563443482b87c21a3584b8184 diff --git a/app-text/discount/discount-2.1.8a-r1.ebuild b/app-text/discount/discount-2.1.8a-r1.ebuild new file mode 100644 index 000000000000..f913f6fad1fc --- /dev/null +++ b/app-text/discount/discount-2.1.8a-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib + +DESCRIPTION="An implementation of John Gruber's Markdown text to html language written in C" +HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/" +SRC_URI="http://www.pell.portland.or.us/~orc/Code/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86" +IUSE="minimal" + +src_prepare() { + # for QA, we remove the Makefile’s usage of install -s. + # Drop ldconfig invocation. + # Force “librarian.sh” to respect LDFLAGS ($FLAGS should have CFLAGS + # at that point). + sed -i \ + -e '/INSTALL_PROGRAM/s,-s ,,' \ + -e 's/\(LDCONFIG=\).*/\1:/' \ + -e 's/\(.\)\$FLAGS/& \1$LDFLAGS/' \ + configure.inc || die "sed configure.inc failed" + + # Add LDFLAGS and CPPFLAGS hackily. + sed -i \ + -e 's/^CC[ \t]*=.*/& $(CPPFLAGS)/' \ + -e 's/^LFLAGS[ \t]*=.*/& $(LDFLAGS)/' \ + Makefile.in || die "Cannot fix LDFLAGS and CPPFLAGS" +} + +src_configure() { + # How econf() handles quoted whitespace. This should go away next + # release of discount. + eval "local -a DISCOUNT_EXTRA_CONFIGURE_SH=(${DISCOUNT_EXTRA_CONFIGURE_SH})" + + local configure_call=( + ./configure.sh + --libdir="${EPREFIX}"usr/"$(get_libdir)" + --prefix="${EPREFIX}"usr + --mandir="${EPREFIX}"usr/share/man + --shared + $(usex minimal '' --enable-all-features) + # Because a lot of discount features are exposed through + # ./configure.sh flags that, in the future, won’t be, I will + # respect DISCOUNT_EXTRA_CONFIGURE_SH as a workaround pending + # upstream https://github.com/Orc/discount/issues/124 for bug + # #554520. + "${DISCOUNT_EXTRA_CONFIGURE_SH[@]}" + # Enable deterministic HTML generation behavior. Otherwise, will + # actually call rand() as parse of its serialization code… + --debian-glitch + ) + einfo "Running ${configure_call[@]} || die" + "${configure_call[@]}" || die +} + +src_install() { + emake \ + DESTDIR="${D}" \ + $(usex minimal install install.everything) \ + SAMPLE_PFX="${PN}-" +} + +pkg_postinst() { + if ! use minimal; then + elog "Sample binaries with overly-generic names have been" + elog "prefixed with \"${PN}-\". Please see" + elog "https://github.com/Orc/discount/issues/81 for discussion." + fi + # This should also go away after 2.1.8a… + elog "To configure advanced options, use DISCOUNT_EXTRA_CONFIGURE_SH" + elog "and see https://bugs.gentoo.org/554520." +} diff --git a/app-text/discount/discount-2.2.2.ebuild b/app-text/discount/discount-2.2.2.ebuild new file mode 100644 index 000000000000..a16f7b4e4025 --- /dev/null +++ b/app-text/discount/discount-2.2.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A Markdown-to HTML translator written in C" +HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/" +SRC_URI="http://www.pell.portland.or.us/~orc/Code/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="minimal test" + +src_prepare() { + default + + # for QA, we remove the Makefile’s usage of install -s. + # Drop ldconfig invocation. + # Force “librarian.sh” to respect LDFLAGS ($FLAGS should have CFLAGS + # at that point). + sed -i \ + -e '/INSTALL_PROGRAM/s,-s ,,' \ + -e 's/\(LDCONFIG=\).*/\1:/' \ + -e 's/\(.\)\$FLAGS/& \1$LDFLAGS/' \ + configure.inc || die "sed configure.inc failed" + + # Add LDFLAGS and CPPFLAGS hackily. + sed -i \ + -e 's/^CC[ \t]*=.*/& $(CPPFLAGS)/' \ + -e 's/^LFLAGS[ \t]*=.*/& $(LDFLAGS)/' \ + Makefile.in || die "Cannot fix LDFLAGS and CPPFLAGS" +} + +src_configure() { + local configure_call=( + ./configure.sh + --libdir="${EPREFIX}"usr/"$(get_libdir)" + --prefix="${EPREFIX}"usr + --mandir="${EPREFIX}"usr/share/man + --shared + --pkg-config + $(usex minimal '' --enable-all-features) + # Enable deterministic HTML generation behavior. Otherwise, will + # actually call rand() as part of its serialization code... + --debian-glitch + ) + einfo "Running ${configure_call[@]}" + "${configure_call[@]}" || die +} + +src_install() { + emake \ + DESTDIR="${D}" \ + $(usex minimal install install.everything) \ + SAMPLE_PFX="${PN}-" + + insinto /usr/$(get_libdir)/pkgconfig + doins libmarkdown.pc +} + +pkg_postinst() { + if ! use minimal; then + elog 'Sample binaries with overly-generic names have been' + elog "prefixed with \"${PN}-\"." + fi +} diff --git a/app-text/discount/metadata.xml b/app-text/discount/metadata.xml new file mode 100644 index 000000000000..f5a6787777d1 --- /dev/null +++ b/app-text/discount/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>reagentoo@gmail.com</email> + <name>Dmitry Baranov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> |