mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
Merge pull request #577 from dm0-/unrar
app-arch/unrar: Drop dead package
This commit is contained in:
commit
00fdbbd431
@ -1,5 +0,0 @@
|
|||||||
DIST unrar-5.5.5.tar.gz 220377 SHA256 a4553839cb2f025d0d9c5633816a83a723e3938209f17620c8c15da06ed061ef SHA512 b0979641737e3ef18f6708cc19e335c312ac5c6e2a13206d5fed9a5564ac99042c45a842da95163e53c6415131a39a91e901aeb186016da2e3781164679a07ff WHIRLPOOL e22399e866fabeb6f0c1617ca6b8852cf1bd406c0e95e5480692fe33bed9a130dd678f93dde6401015928437b99949865a80b21774788fdb1c7a12e3175560f4
|
|
||||||
DIST unrar-5.5.6.tar.gz 221099 SHA256 68a9d8f40c709b883bb15b21a9811907e56a07411d90aeaa992622ed9cf128c0 SHA512 591575ba573e7f1b658041595b8439c7f1f60d354bc2b0a6aa9d3be6340d4892b2752e8ce94a928cf0270a0e1c491ce3ee59b3c36167174c53cfd657b9c85837 WHIRLPOOL 5c43856c418fffccc1fe1202441b628a1491dc94873643044c9791947ebfeb21e281231c6ccacaa80df512d6f62cb9d0d1f555d53c1b7e2cae280e65ad8558d0
|
|
||||||
DIST unrar-5.5.7.tar.gz 222293 SHA256 8aef0a0d91bf9c9ac48fab8a26049ac7ac49907e75a2dcbd511a4ba375322d8f SHA512 7dfad639df1f64db662a24b79fe77c7085096ad1d63de8f3e6ed01082334ac83e7bdf0572d2137e5fc11e261491da55b579b6fc50933a4cb3569c7fe972be5db WHIRLPOOL 94208650cc3e63fa5b121f3c2fe2d1c985a1d94589e4b57c13e2112b81c1ad959c4e5d149d4193b61cef98805ae1fecd88e80093ac0affd1b7769fc1e0121f99
|
|
||||||
DIST unrar-5.5.8.tar.gz 222285 SHA256 9b66e4353a9944bc140eb2a919ff99482dd548f858f5e296d809e8f7cdb2fcf4 SHA512 9eac83707fa47a03925e5f3e8adf47889064d748304b732d12a2d379ab525b441f1aa33216377d4ef445f45c4e8ad73d2cd0b560601ceac344c60571b77fd6aa WHIRLPOOL 3e96f6073c93b28089b53f2b39016a98d0ffe243c7cb6262bf6bc0bac95daba005279f0c0d8a7fd717443891e932a4c0d31c19a02b9a5438ddc570f3812e2687
|
|
||||||
DIST unrarsrc-5.4.5.tar.gz 226320 SHA256 e470c584332422893fb52e049f2cbd99e24dc6c6da971008b4e2ae4284f8796c SHA512 ba2abf11638b5ee026cb9e0c3576c94376a01ab3c5411b9bd0e8116d64879c81e76df16f98d850f0f0f5387dda046f38be64ddfb4fe57431cc4d97066d6e3c2f WHIRLPOOL c8e035ec183f41d8faf8345b49d2a4d20e21f9c6e27f14d7794389942df4954cd66ab4a5be2fdff6d369b514ae99d5d015f35a36143d686563b2a8efdfc77dce
|
|
@ -1,45 +0,0 @@
|
|||||||
do not let these targets depend on clean, otherwise it could run in
|
|
||||||
parallel with the object compile which runs into races
|
|
||||||
https://bugs.gentoo.org/461806
|
|
||||||
|
|
||||||
While we're in here, fix up a few other things:
|
|
||||||
- append -pthread to LDFLAGS instead of replacing them
|
|
||||||
- do not bother with `rm` in the output since linking will clober it
|
|
||||||
- use CXXFLAGS when linking
|
|
||||||
- append LIBFLAGS to the individual targets instead of the final link
|
|
||||||
|
|
||||||
--- a/makefile
|
|
||||||
+++ b/makefile
|
|
||||||
@@ -7,7 +7,7 @@
|
|
||||||
LIBFLAGS=-fPIC
|
|
||||||
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
|
|
||||||
STRIP=strip
|
|
||||||
-LDFLAGS=-pthread
|
|
||||||
+LDFLAGS+=-pthread
|
|
||||||
DESTDIR=/usr
|
|
||||||
|
|
||||||
# Linux using LCC
|
|
||||||
@@ -119,8 +119,7 @@
|
|
||||||
@rm -f *.o *.bak *~
|
|
||||||
|
|
||||||
unrar: clean $(OBJECTS) $(UNRAR_OBJ)
|
|
||||||
- @rm -f unrar
|
|
||||||
- $(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
|
|
||||||
+ $(LINK) -o unrar $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
|
|
||||||
$(STRIP) unrar
|
|
||||||
|
|
||||||
sfx: WHAT=SFX_MODULE
|
|
||||||
@@ -130,10 +129,9 @@
|
|
||||||
$(STRIP) default.sfx
|
|
||||||
|
|
||||||
lib: WHAT=RARDLL
|
|
||||||
-lib: CXXFLAGS+=$(LIBFLAGS)
|
|
||||||
-lib: clean $(OBJECTS) $(LIB_OBJ)
|
|
||||||
- @rm -f libunrar.so
|
|
||||||
- $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
|
|
||||||
+$(OBJECTS) $(LIB_OBJ): CXXFLAGS+=$(LIBFLAGS)
|
|
||||||
+lib: $(OBJECTS) $(LIB_OBJ)
|
|
||||||
+ $(LINK) -shared -o libunrar.so $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
|
|
||||||
|
|
||||||
install-unrar:
|
|
||||||
install -D unrar $(DESTDIR)/bin/unrar
|
|
@ -1,17 +0,0 @@
|
|||||||
if clean runs in parallel with $(OBJECTS), it is possible to build some
|
|
||||||
objects first, then the clean target fires and deletes some, and then we
|
|
||||||
try to link and fail.
|
|
||||||
|
|
||||||
https://bugs.gentoo.org/528218
|
|
||||||
|
|
||||||
--- a/makefile
|
|
||||||
+++ b/makefile
|
|
||||||
@@ -118,7 +118,7 @@
|
|
||||||
clean:
|
|
||||||
@rm -f *.o *.bak *~
|
|
||||||
|
|
||||||
-unrar: clean $(OBJECTS) $(UNRAR_OBJ)
|
|
||||||
+unrar: $(OBJECTS) $(UNRAR_OBJ)
|
|
||||||
$(LINK) -o unrar $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
|
|
||||||
$(STRIP) unrar
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
Makefile: Fix parallel build issue
|
|
||||||
|
|
||||||
If clean runs in parallel with $(OBJECTS), it is possible to build some
|
|
||||||
objects first, then the clean target fires and deletes some, and then we
|
|
||||||
try to link and fail.
|
|
||||||
|
|
||||||
Gentoo-Bug: https://bugs.gentoo.org/528218
|
|
||||||
|
|
||||||
--- a/makefile
|
|
||||||
+++ b/makefile
|
|
||||||
@@ -139,23 +139,23 @@ uninstall: uninstall-unrar
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@rm -f *.o *.bak *~
|
|
||||||
-
|
|
||||||
-unrar: clean $(OBJECTS) $(UNRAR_OBJ)
|
|
||||||
@rm -f unrar
|
|
||||||
+ @rm -f default.sfx
|
|
||||||
+ @rm -f libunrar.so
|
|
||||||
+ @rm -f libunrar.a
|
|
||||||
+
|
|
||||||
+unrar: $(OBJECTS) $(UNRAR_OBJ)
|
|
||||||
$(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
|
|
||||||
$(STRIP) unrar
|
|
||||||
|
|
||||||
sfx: WHAT=SFX_MODULE
|
|
||||||
-sfx: clean $(OBJECTS)
|
|
||||||
- @rm -f default.sfx
|
|
||||||
+sfx: $(OBJECTS)
|
|
||||||
$(LINK) -o default.sfx $(LDFLAGS) $(OBJECTS)
|
|
||||||
$(STRIP) default.sfx
|
|
||||||
|
|
||||||
lib: WHAT=RARDLL
|
|
||||||
lib: CXXFLAGS+=$(LIBFLAGS)
|
|
||||||
-lib: clean $(OBJECTS) $(LIB_OBJ)
|
|
||||||
- @rm -f libunrar.so
|
|
||||||
- @rm -f libunrar.a
|
|
||||||
+lib: $(OBJECTS) $(LIB_OBJ)
|
|
||||||
$(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
|
|
||||||
$(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
|
|
||||||
|
|
||||||
--
|
|
||||||
2.13.1
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
|||||||
Makefile: Honor {LD,CXX}FLAGS, add LIBFLAGS
|
|
||||||
|
|
||||||
- append -pthread to LDFLAGS instead of replacing them
|
|
||||||
- use CXXFLAGS when linking
|
|
||||||
- append LIBFLAGS to the individual targets instead of the final link
|
|
||||||
|
|
||||||
Gentoo-Bug: https://bugs.gentoo.org/461806
|
|
||||||
|
|
||||||
--- a/makefile
|
|
||||||
+++ b/makefile
|
|
||||||
@@ -8,7 +8,7 @@ LIBFLAGS=-fPIC
|
|
||||||
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
|
|
||||||
STRIP=strip
|
|
||||||
AR=ar
|
|
||||||
-LDFLAGS=-pthread
|
|
||||||
+LDFLAGS+=-pthread
|
|
||||||
DESTDIR=/usr
|
|
||||||
|
|
||||||
# Linux using LCC
|
|
||||||
@@ -145,18 +145,19 @@ clean:
|
|
||||||
@rm -f libunrar.a
|
|
||||||
|
|
||||||
unrar: $(OBJECTS) $(UNRAR_OBJ)
|
|
||||||
- $(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
|
|
||||||
+ $(LINK) -o unrar $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
|
|
||||||
$(STRIP) unrar
|
|
||||||
|
|
||||||
sfx: WHAT=SFX_MODULE
|
|
||||||
sfx: $(OBJECTS)
|
|
||||||
- $(LINK) -o default.sfx $(LDFLAGS) $(OBJECTS)
|
|
||||||
+ $(LINK) -o default.sfx $(CXXFLAGS) $(LDFLAGS) $(OBJECTS)
|
|
||||||
$(STRIP) default.sfx
|
|
||||||
|
|
||||||
+$(OBJECTS) $(LIB_OBJ): CXXFLAGS+=$(LIBFLAGS)
|
|
||||||
+
|
|
||||||
lib: WHAT=RARDLL
|
|
||||||
-lib: CXXFLAGS+=$(LIBFLAGS)
|
|
||||||
lib: $(OBJECTS) $(LIB_OBJ)
|
|
||||||
- $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
|
|
||||||
+ $(LINK) -shared -o libunrar.so $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
|
|
||||||
$(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
|
|
||||||
|
|
||||||
install-unrar:
|
|
||||||
--
|
|
||||||
2.13.1
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>whissi@gentoo.org</email>
|
|
||||||
<name>Thomas Deutschmann</name>
|
|
||||||
</maintainer>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>base-system@gentoo.org</email>
|
|
||||||
<name>Gentoo Base System</name>
|
|
||||||
</maintainer>
|
|
||||||
<slots>
|
|
||||||
<subslots>Reflect ABI of libunrar.so.</subslots>
|
|
||||||
</slots>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="cpe">cpe:/a:rarlab:unrar</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
@ -1,62 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
MY_PN=${PN}src
|
|
||||||
|
|
||||||
DESCRIPTION="Uncompress rar files"
|
|
||||||
HOMEPAGE="http://www.rarlab.com/rar_add.htm"
|
|
||||||
SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="unRAR"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
|
|
||||||
|
|
||||||
S=${WORKDIR}/unrar
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-5.0.2-build.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-5.2.2-no-auto-clean.patch #528218
|
|
||||||
local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
else
|
|
||||||
sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
fi
|
|
||||||
sed -i "${sed_args[@]}" makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
mkdir -p build-{lib,bin}
|
|
||||||
printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
|
|
||||||
cp build-{lib,bin}/Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
unrar_make() {
|
|
||||||
emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
|
|
||||||
|
|
||||||
unrar_make -C build-bin
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin build-bin/unrar
|
|
||||||
dodoc readme.txt
|
|
||||||
|
|
||||||
dolib.so build-lib/libunrar*
|
|
||||||
|
|
||||||
insinto /usr/include/libunrar${PV%.*.*}
|
|
||||||
doins *.hpp
|
|
||||||
dosym libunrar${PV%.*.*} /usr/include/libunrar
|
|
||||||
}
|
|
@ -1,65 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
MY_PN=${PN}src
|
|
||||||
|
|
||||||
DESCRIPTION="Uncompress rar files"
|
|
||||||
HOMEPAGE="http://www.rarlab.com/rar_add.htm"
|
|
||||||
SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="unRAR"
|
|
||||||
# subslot = soname version
|
|
||||||
SLOT="0/5"
|
|
||||||
KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
|
|
||||||
|
|
||||||
S=${WORKDIR}/unrar
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-5.5.5-build.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-5.5.5-honor-flags.patch
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
else
|
|
||||||
sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
fi
|
|
||||||
sed -i "${sed_args[@]}" makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
mkdir -p build-{lib,bin}
|
|
||||||
printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
|
|
||||||
cp build-{lib,bin}/Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
unrar_make() {
|
|
||||||
emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
|
|
||||||
|
|
||||||
unrar_make -C build-bin
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin build-bin/unrar
|
|
||||||
dodoc readme.txt
|
|
||||||
|
|
||||||
dolib.so build-lib/libunrar*
|
|
||||||
|
|
||||||
insinto /usr/include/libunrar${PV%.*.*}
|
|
||||||
doins *.hpp
|
|
||||||
dosym libunrar${PV%.*.*} /usr/include/libunrar
|
|
||||||
}
|
|
@ -1,65 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
MY_PN=${PN}src
|
|
||||||
|
|
||||||
DESCRIPTION="Uncompress rar files"
|
|
||||||
HOMEPAGE="http://www.rarlab.com/rar_add.htm"
|
|
||||||
SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="unRAR"
|
|
||||||
# subslot = soname version
|
|
||||||
SLOT="0/5"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
|
|
||||||
|
|
||||||
S=${WORKDIR}/unrar
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-5.5.5-build.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-5.5.5-honor-flags.patch
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
else
|
|
||||||
sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
fi
|
|
||||||
sed -i "${sed_args[@]}" makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
mkdir -p build-{lib,bin}
|
|
||||||
printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
|
|
||||||
cp build-{lib,bin}/Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
unrar_make() {
|
|
||||||
emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
|
|
||||||
|
|
||||||
unrar_make -C build-bin
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin build-bin/unrar
|
|
||||||
dodoc readme.txt
|
|
||||||
|
|
||||||
dolib.so build-lib/libunrar*
|
|
||||||
|
|
||||||
insinto /usr/include/libunrar${PV%.*.*}
|
|
||||||
doins *.hpp
|
|
||||||
dosym libunrar${PV%.*.*} /usr/include/libunrar
|
|
||||||
}
|
|
@ -1,65 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
MY_PN=${PN}src
|
|
||||||
|
|
||||||
DESCRIPTION="Uncompress rar files"
|
|
||||||
HOMEPAGE="http://www.rarlab.com/rar_add.htm"
|
|
||||||
SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="unRAR"
|
|
||||||
# subslot = soname version
|
|
||||||
SLOT="0/5"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
|
|
||||||
|
|
||||||
S=${WORKDIR}/unrar
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-5.5.5-build.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-5.5.5-honor-flags.patch
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
else
|
|
||||||
sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
fi
|
|
||||||
sed -i "${sed_args[@]}" makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
mkdir -p build-{lib,bin}
|
|
||||||
printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
|
|
||||||
cp build-{lib,bin}/Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
unrar_make() {
|
|
||||||
emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
|
|
||||||
|
|
||||||
unrar_make -C build-bin
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin build-bin/unrar
|
|
||||||
dodoc readme.txt
|
|
||||||
|
|
||||||
dolib.so build-lib/libunrar*
|
|
||||||
|
|
||||||
insinto /usr/include/libunrar${PV%.*.*}
|
|
||||||
doins *.hpp
|
|
||||||
dosym libunrar${PV%.*.*} /usr/include/libunrar
|
|
||||||
}
|
|
@ -1,68 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
MY_PN=${PN}src
|
|
||||||
|
|
||||||
DESCRIPTION="Uncompress rar files"
|
|
||||||
HOMEPAGE="http://www.rarlab.com/rar_add.htm"
|
|
||||||
SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="unRAR"
|
|
||||||
# subslot = soname version
|
|
||||||
SLOT="0/5"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
|
|
||||||
|
|
||||||
S=${WORKDIR}/unrar
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-5.5.5-build.patch
|
|
||||||
"${FILESDIR}"/${PN}-5.5.5-honor-flags.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
else
|
|
||||||
sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
|
|
||||||
fi
|
|
||||||
sed -i "${sed_args[@]}" makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
mkdir -p build-{lib,bin}
|
|
||||||
printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
|
|
||||||
cp build-{lib,bin}/Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
unrar_make() {
|
|
||||||
emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
|
|
||||||
ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
|
|
||||||
|
|
||||||
unrar_make -C build-bin
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin build-bin/unrar
|
|
||||||
dodoc readme.txt
|
|
||||||
|
|
||||||
dolib.so build-lib/libunrar*
|
|
||||||
|
|
||||||
insinto /usr/include/libunrar${PV%.*.*}
|
|
||||||
doins *.hpp
|
|
||||||
dosym libunrar${PV%.*.*} /usr/include/libunrar
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DESCRIPTION=Uncompress rar files
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.rarlab.com/rar_add.htm
|
|
||||||
KEYWORDS=alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris
|
|
||||||
LICENSE=unRAR
|
|
||||||
RDEPEND=!<=app-arch/unrar-gpl-0.0.1_p20080417
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=http://www.rarlab.com/rar/unrarsrc-5.4.5.tar.gz
|
|
||||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 8fec6b1eb195836560e70b66d98fb163
|
|
||||||
_md5_=17c1b0da97523fb8d64d8bd9128f5dbc
|
|
@ -1,11 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DESCRIPTION=Uncompress rar files
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.rarlab.com/rar_add.htm
|
|
||||||
KEYWORDS=alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris
|
|
||||||
LICENSE=unRAR
|
|
||||||
RDEPEND=!<=app-arch/unrar-gpl-0.0.1_p20080417
|
|
||||||
SLOT=0/5
|
|
||||||
SRC_URI=http://www.rarlab.com/rar/unrarsrc-5.5.5.tar.gz -> unrar-5.5.5.tar.gz
|
|
||||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 8fec6b1eb195836560e70b66d98fb163
|
|
||||||
_md5_=cb1448c2c2d4b224e9fcef8cae2cd60e
|
|
@ -1,11 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DESCRIPTION=Uncompress rar files
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.rarlab.com/rar_add.htm
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris
|
|
||||||
LICENSE=unRAR
|
|
||||||
RDEPEND=!<=app-arch/unrar-gpl-0.0.1_p20080417
|
|
||||||
SLOT=0/5
|
|
||||||
SRC_URI=http://www.rarlab.com/rar/unrarsrc-5.5.6.tar.gz -> unrar-5.5.6.tar.gz
|
|
||||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 8fec6b1eb195836560e70b66d98fb163
|
|
||||||
_md5_=008bcaf5c1278e1041ac17e80c0fb9c7
|
|
@ -1,11 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DESCRIPTION=Uncompress rar files
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.rarlab.com/rar_add.htm
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris
|
|
||||||
LICENSE=unRAR
|
|
||||||
RDEPEND=!<=app-arch/unrar-gpl-0.0.1_p20080417
|
|
||||||
SLOT=0/5
|
|
||||||
SRC_URI=http://www.rarlab.com/rar/unrarsrc-5.5.7.tar.gz -> unrar-5.5.7.tar.gz
|
|
||||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 8fec6b1eb195836560e70b66d98fb163
|
|
||||||
_md5_=008bcaf5c1278e1041ac17e80c0fb9c7
|
|
@ -1,11 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DESCRIPTION=Uncompress rar files
|
|
||||||
EAPI=6
|
|
||||||
HOMEPAGE=http://www.rarlab.com/rar_add.htm
|
|
||||||
KEYWORDS=~alpha amd64 ~arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris
|
|
||||||
LICENSE=unRAR
|
|
||||||
RDEPEND=!<=app-arch/unrar-gpl-0.0.1_p20080417
|
|
||||||
SLOT=0/5
|
|
||||||
SRC_URI=http://www.rarlab.com/rar/unrarsrc-5.5.8.tar.gz -> unrar-5.5.8.tar.gz
|
|
||||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 8fec6b1eb195836560e70b66d98fb163
|
|
||||||
_md5_=fad50ea0ed1157d7e65f09fcea3fe568
|
|
Loading…
Reference in New Issue
Block a user