dev-libs/bglibs: bump version to 2.04
authorStefan Strogin <stefan.strogin@gmail.com>
Sat, 4 May 2019 03:02:54 +0000 (06:02 +0300)
committerStefan Strogin <stefan.strogin@gmail.com>
Sat, 4 May 2019 18:25:43 +0000 (21:25 +0300)
- Change SLOT to "0/2". The soname also changed from libbg.so.1 to
libbg.so.2.
- Add USE=doc. Do not install *.tex files, generate a pdf instead.
- EAPI=7.
- Mask the new version for revdeps testing.

Closes: https://bugs.gentoo.org/591300
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
dev-libs/bglibs/Manifest
dev-libs/bglibs/bglibs-2.04.ebuild [new file with mode: 0644]
profiles/package.mask

index 03dcb3cdc31030d20d6ffb2b56e07eb67019354c..0400670f7c61420e84eaa3e9ca1e4b6aa5efdef9 100644 (file)
@@ -1,2 +1,3 @@
 DIST bglibs-1.041.tar.gz 317199 BLAKE2B 808bfbc713aaf06c5eb828b4bf0f5b789969afaa078b68292f209d7612860d4a5de793ec8768c63908a48f98841d30a0b2bd9a40b45ce94cb0a539ebcb2cbdbb SHA512 63f1cbef024f528d13a23f84f11b014be2ee9a9c8c40f49f8a114a6b4407c1279860a049f3dd67cfa7306a5326bbb93bb57b134af05031ec3c00f5f49784f6bc
 DIST bglibs-1.106.tar.gz 481564 BLAKE2B 838bd29753b254efc90c8c2c2e4d4920de2e931f823d32393184156f76967ec1995f1e79d2879169dd509cddd298b2389a4ca0109b81245fc617575f3ccf7405 SHA512 c1ae4bb9978b09ffe01231738d1f249c2040a51c2a0bbc4b04389a7085a3885cca6483f1bfe65deca213d991273bb3b7b925ebde8b6e2cd9182d8a57cb9a49d8
+DIST bglibs-2.04.tar.gz 713673 BLAKE2B 9e1353b3221ef6a8cfb256ec8616d1e208777b20ecade3e6ae17faca6b42222e18aa601a948e6201139378bf6f8131a2b7a053d77b198176776d42a1af611186 SHA512 094268cad7d4bacf65c0dd3d42fde2e6bac34da0fd6193b1c8202c018e752b3ef80a86c38e687467fb3a4e97130126fe74ee4a86063e4b25ee291de573984a6f
diff --git a/dev-libs/bglibs/bglibs-2.04.ebuild b/dev-libs/bglibs/bglibs-2.04.ebuild
new file mode 100644 (file)
index 0000000..7af2222
--- /dev/null
@@ -0,0 +1,72 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Bruce Guenter's Libraries Collection"
+HOMEPAGE="https://untroubled.org/bglibs/"
+SRC_URI="https://untroubled.org/bglibs/archive/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+RDEPEND=""
+DEPEND=""
+BDEPEND="doc? (
+               app-doc/doxygen
+               dev-tex/xcolor
+               dev-texlive/texlive-latex
+               dev-texlive/texlive-latexextra
+               virtual/latex-base
+       )
+"
+
+src_prepare() {
+       default
+       # disable tests as we want them manually
+       sed -i '/^all:/s|selftests||' "${S}"/Makefile || die
+       sed -i '/selftests/d' "${S}"/TARGETS || die
+}
+
+src_configure() {
+       echo "${ED}/usr/bin" > conf-bin || die
+       echo "${ED}/usr/$(get_libdir)/bglibs" > conf-lib || die
+       echo "${ED}/usr/include" > conf-include || die
+       echo "${ED}/usr/share/man" > conf-man || die
+       echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
+       echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
+}
+
+src_compile() {
+       default
+       if use doc; then
+               emake -C doc/latex pdf
+       fi
+}
+
+src_test() {
+       einfo "Running selftests"
+       emake selftests
+}
+
+src_install() {
+       default
+
+       # Install .so into LDPATH
+       mv "${ED}"/usr/$(get_libdir)/bglibs/libbg.so.2.0.0 "${ED}"/usr/$(get_libdir)/ || die
+       dosym libbg.so.2.0.0 /usr/$(get_libdir)/libbg.so.2
+       dosym libbg.so.2.0.0 /usr/$(get_libdir)/libbg.so
+       dosym ../libbg.so.2.0.0 /usr/$(get_libdir)/bglibs/libbg.so.2.0.0
+
+       rm "${ED}"/usr/$(get_libdir)/bglibs/libbg.la || die
+
+       dodoc ANNOUNCEMENT NEWS README ChangeLog TODO VERSION
+       dodoc -r doc/html/
+       if use doc; then
+               dodoc doc/latex/refman.pdf
+       fi
+}
index 5d7b09e8026d2fc3836951cd3bd7b88e07046246..99f8d12eb7e016aa5020f91970c4c14fd8c00118 100644 (file)
 
 #--- END OF EXAMPLES ---
 
+# Stefan Strogin <stefan.strogin@gmail.com> (04 May 2019)
+# Masked for testing reverse dependencies. Bug #591300.
+>=dev-libs/bglibs-2.04
+
 # Michał Górny <mgorny@gentoo.org> (02 May 2019)
 # Discontinued upstream, and no longer required by any packages
 # in Gentoo.  Removal in 30 days.  Bug #684828.