diff options
author | Stefan Strogin <stefan.strogin@gmail.com> | 2019-05-04 06:02:54 +0300 |
---|---|---|
committer | Stefan Strogin <stefan.strogin@gmail.com> | 2019-05-04 21:25:43 +0300 |
commit | b0c61664c4398a9423ccc6512210ab10ed69186a (patch) | |
tree | a1c58d7efffc934398be840f78e7d50a81395d0c | |
parent | sys-apps/sysvinit: Add ~riscv keyword (diff) | |
download | gentoo-b0c61664c4398a9423ccc6512210ab10ed69186a.tar.gz gentoo-b0c61664c4398a9423ccc6512210ab10ed69186a.tar.bz2 gentoo-b0c61664c4398a9423ccc6512210ab10ed69186a.zip |
dev-libs/bglibs: bump version to 2.04
- 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>
-rw-r--r-- | dev-libs/bglibs/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/bglibs/bglibs-2.04.ebuild | 72 | ||||
-rw-r--r-- | profiles/package.mask | 4 |
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-libs/bglibs/Manifest b/dev-libs/bglibs/Manifest index 03dcb3cdc310..0400670f7c61 100644 --- a/dev-libs/bglibs/Manifest +++ b/dev-libs/bglibs/Manifest @@ -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 index 000000000000..7af2222a4d7f --- /dev/null +++ b/dev-libs/bglibs/bglibs-2.04.ebuild @@ -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 +} diff --git a/profiles/package.mask b/profiles/package.mask index 5d7b09e8026d..99f8d12eb7e0 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -29,6 +29,10 @@ #--- 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. |