mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/bglibs: Remove old
Bug: https://bugs.gentoo.org/688158 Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST bglibs-1.106.tar.gz 481564 BLAKE2B 838bd29753b254efc90c8c2c2e4d4920de2e931f823d32393184156f76967ec1995f1e79d2879169dd509cddd298b2389a4ca0109b81245fc617575f3ccf7405 SHA512 c1ae4bb9978b09ffe01231738d1f249c2040a51c2a0bbc4b04389a7085a3885cca6483f1bfe65deca213d991273bb3b7b925ebde8b6e2cd9182d8a57cb9a49d8
|
||||
DIST bglibs-2.04.tar.gz 713673 BLAKE2B 9e1353b3221ef6a8cfb256ec8616d1e208777b20ecade3e6ae17faca6b42222e18aa601a948e6201139378bf6f8131a2b7a053d77b198176776d42a1af611186 SHA512 094268cad7d4bacf65c0dd3d42fde2e6bac34da0fd6193b1c8202c018e752b3ef80a86c38e687467fb3a4e97130126fe74ee4a86063e4b25ee291de573984a6f
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit toolchain-funcs eutils multilib
|
||||
|
||||
DESCRIPTION="Bruce Guenters Libraries Collection"
|
||||
HOMEPAGE="http://untroubled.org/bglibs/"
|
||||
SRC_URI="http://untroubled.org/bglibs/archive/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ~mips ppc ~ppc64 ~sparc x86"
|
||||
IUSE=""
|
||||
DEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.106-parallel-fix.patch
|
||||
# disable tests as we want them manually
|
||||
sed -i \
|
||||
-e '/^all:/s|selftests||' \
|
||||
"${S}"/Makefile
|
||||
sed -i \
|
||||
-e '/selftests/d' \
|
||||
"${S}"/TARGETS
|
||||
#sed -i \
|
||||
# -e 's,^libraries:,LIBS = ,g' \
|
||||
# -e '/^LIBS =/alibs-static: $(filter %.a,$(LIBS))' \
|
||||
# -e '/^LIBS =/alibs-shared: $(filter %.la,$(LIBS))' \
|
||||
# -e '/^LIBS =/alibraries: libs-static libs-shared' \
|
||||
# "${S}"/Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
echo "${D}/usr/bin" > conf-bin
|
||||
echo "${D}/usr/$(get_libdir)/bglibs" > conf-lib
|
||||
echo "${D}/usr/include/bglibs" > conf-include
|
||||
echo "${D}/usr/share/man" > conf-man
|
||||
echo "$(tc-getCC) ${CFLAGS}" > conf-cc
|
||||
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo "Running selftests"
|
||||
emake selftests
|
||||
}
|
||||
|
||||
src_install () {
|
||||
einstall || die "install failed"
|
||||
|
||||
#make backwards compatible symlinks
|
||||
dosym /usr/$(get_libdir)/bglibs /usr/$(get_libdir)/bglibs/lib
|
||||
[ "$(get_libdir)" != "lib" ] && dosym /usr/$(get_libdir)/bglibs /usr/$(get_libdir)/bglibs/$(get_libdir)
|
||||
dosym /usr/include/bglibs /usr/$(get_libdir)/bglibs/include
|
||||
|
||||
#install .so in LDPATH
|
||||
mv "${D}"/usr/$(get_libdir)/bglibs/libbg.so.1.1.1 "${D}"/usr/$(get_libdir)/
|
||||
mv "${D}"/usr/$(get_libdir)/bglibs/libbg-sysdeps.so.1.1.1 "${D}"/usr/$(get_libdir)/
|
||||
dosym libbg.so.1.1.1 /usr/$(get_libdir)/libbg.so.1
|
||||
dosym libbg.so.1.1.1 /usr/$(get_libdir)/libbg.so
|
||||
dosym libbg-sysdeps.so.1.1.1 /usr/$(get_libdir)/libbg-sysdeps.so.1
|
||||
dosym libbg-sysdeps.so.1.1.1 /usr/$(get_libdir)/libbg-sysdeps.so
|
||||
|
||||
dosym ../libbg.so.1.1.1 /usr/$(get_libdir)/bglibs/libbg.so.1.1.1
|
||||
dosym ../libbg-sysdeps.so.1.1.1 /usr/$(get_libdir)/bglibs/libbg-sysdeps.so.1.1.1
|
||||
|
||||
rm "${D}"/usr/$(get_libdir)/bglibs/libbg.la
|
||||
rm "${D}"/usr/$(get_libdir)/bglibs/libbg-sysdeps.la
|
||||
|
||||
dodoc ANNOUNCEMENT NEWS README ChangeLog TODO VERSION
|
||||
dohtml doc/html/*
|
||||
docinto latex
|
||||
dodoc doc/latex/*
|
||||
}
|
||||
@@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Bruce Guenters Libraries Collection"
|
||||
HOMEPAGE="https://untroubled.org/bglibs/
|
||||
https://github.com/bruceg/bglibs"
|
||||
SRC_URI="https://untroubled.org/bglibs/archive/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
BDEPEND="
|
||||
sys-devel/libtool
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
dev-tex/xcolor
|
||||
dev-texlive/texlive-latex
|
||||
dev-texlive/texlive-latexextra
|
||||
virtual/latex-base
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.106-parallel-fix.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# disable tests as we want them manually
|
||||
sed -i -e '/^all:/s|selftests||' Makefile || die
|
||||
sed -i -e '/selftests/d' TARGETS || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
echo "${ED}/usr/bin" > conf-bin || die
|
||||
echo "${ED}/usr/$(get_libdir)/bglibs" > conf-lib || die
|
||||
echo "${ED}/usr/include/bglibs" > 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
|
||||
|
||||
#make backwards compatible symlinks
|
||||
dosym ../../$(get_libdir)/bglibs /usr/$(get_libdir)/bglibs/lib
|
||||
[[ "$(get_libdir)" != "lib" ]] && dosym ../../$(get_libdir)/bglibs /usr/$(get_libdir)/bglibs/$(get_libdir)
|
||||
dosym ../../include/bglibs /usr/$(get_libdir)/bglibs/include
|
||||
|
||||
#install .so in LDPATH
|
||||
mv "${ED}"/usr/$(get_libdir)/bglibs/libbg.so.1.1.1 "${ED}"/usr/$(get_libdir)/ || die
|
||||
mv "${ED}"/usr/$(get_libdir)/bglibs/libbg-sysdeps.so.1.1.1 "${ED}"/usr/$(get_libdir)/ || die
|
||||
dosym libbg.so.1.1.1 /usr/$(get_libdir)/libbg.so.1
|
||||
dosym libbg.so.1.1.1 /usr/$(get_libdir)/libbg.so
|
||||
dosym libbg-sysdeps.so.1.1.1 /usr/$(get_libdir)/libbg-sysdeps.so.1
|
||||
dosym libbg-sysdeps.so.1.1.1 /usr/$(get_libdir)/libbg-sysdeps.so
|
||||
|
||||
dosym ../libbg.so.1.1.1 /usr/$(get_libdir)/bglibs/libbg.so.1.1.1
|
||||
dosym ../libbg-sysdeps.so.1.1.1 /usr/$(get_libdir)/bglibs/libbg-sysdeps.so.1.1.1
|
||||
|
||||
rm "${ED}"/usr/$(get_libdir)/bglibs/libbg.la || die
|
||||
rm "${ED}"/usr/$(get_libdir)/bglibs/libbg-sysdeps.la || die
|
||||
|
||||
dodoc ANNOUNCEMENT NEWS README ChangeLog TODO VERSION
|
||||
dodoc -r doc/html/
|
||||
if use doc; then
|
||||
dodoc doc/latex/refman.pdf
|
||||
fi
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
Forward port to 1.106 by Thilo Bangert <bangert@gentoo.org>
|
||||
Fixes for parallel compile.
|
||||
|
||||
- Redirection straight to an output target that is later used for dependancies
|
||||
is not safe. The output file must be come into existence atomically.
|
||||
|
||||
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
||||
|
||||
diff -Naur bglibs-1.106.orig/Makefile bglibs-1.106/Makefile
|
||||
--- bglibs-1.106.orig/Makefile 2009-11-20 11:52:29.000000000 +0100
|
||||
+++ bglibs-1.106/Makefile 2009-11-20 11:56:01.000000000 +0100
|
||||
@@ -152,37 +152,43 @@
|
||||
./compile crc-gentab.c
|
||||
|
||||
crc/crc16_arc_table.c: crc-gentab
|
||||
- ./crc-gentab crc16_arc 16 0x8005 reflected >$@
|
||||
+ ./crc-gentab crc16_arc 16 0x8005 reflected >$@.tmp
|
||||
+ mv $@.tmp $@
|
||||
|
||||
crc/crc16_arc_table.lo crc/crc16_arc_table.o: ltcompile crc/crc16_arc_table.c
|
||||
./ltcompile crc/crc16_arc_table.c
|
||||
|
||||
crc/crc16_ccitt_table.c: crc-gentab
|
||||
- ./crc-gentab crc16_ccitt 16 0x1021 normal >$@
|
||||
+ ./crc-gentab crc16_ccitt 16 0x1021 normal >$@.tmp
|
||||
+ mv $@.tmp $@
|
||||
|
||||
crc/crc16_ccitt_table.lo crc/crc16_ccitt_table.o: ltcompile crc/crc16_ccitt_table.c
|
||||
./ltcompile crc/crc16_ccitt_table.c
|
||||
|
||||
crc/crc16_xmodem_table.c: crc-gentab
|
||||
- ./crc-gentab crc16_xmodem 16 0x8408 reflected >$@
|
||||
+ ./crc-gentab crc16_xmodem 16 0x8408 reflected >$@.tmp
|
||||
+ mv $@.tmp $@
|
||||
|
||||
crc/crc16_xmodem_table.lo crc/crc16_xmodem_table.o: ltcompile crc/crc16_xmodem_table.c
|
||||
./ltcompile crc/crc16_xmodem_table.c
|
||||
|
||||
crc/crc32_table.c: crc-gentab
|
||||
- ./crc-gentab crc32 32 0x04C11DB7 reflected >$@
|
||||
+ ./crc-gentab crc32 32 0x04C11DB7 reflected >$@.tmp
|
||||
+ mv $@.tmp $@
|
||||
|
||||
crc/crc32_table.lo crc/crc32_table.o: ltcompile crc/crc32_table.c
|
||||
./ltcompile crc/crc32_table.c
|
||||
|
||||
crc/crc32c_table.c: crc-gentab
|
||||
- ./crc-gentab crc32c 32 0x1EDC6F41 reflected >$@
|
||||
+ ./crc-gentab crc32c 32 0x1EDC6F41 reflected >$@.tmp
|
||||
+ mv $@.tmp $@
|
||||
|
||||
crc/crc32c_table.lo crc/crc32c_table.o: ltcompile crc/crc32c_table.c
|
||||
./ltcompile crc/crc32c_table.c
|
||||
|
||||
crc/crc64_table.c: crc-gentab
|
||||
- ./crc-gentab crc64 64 0x42F0E1EBA9EA3693 normal >$@
|
||||
+ ./crc-gentab crc64 64 0x42F0E1EBA9EA3693 normal >$@.tmp
|
||||
+ mv $@.tmp $@
|
||||
|
||||
crc/crc64_table.lo crc/crc64_table.o: ltcompile crc/crc64_table.c
|
||||
./ltcompile crc/crc64_table.c
|
||||
Reference in New Issue
Block a user