diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-11-04 02:19:53 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-11-04 02:20:49 +0100 |
commit | dec08cc6d2acf582bc691e68583baf3c17690cfe (patch) | |
tree | a4f994c8314c146155cca82dcc0b7f151f3c91fc /app-arch | |
parent | dev-libs/libmspack: add live ebuild (diff) | |
download | gentoo-dec08cc6d2acf582bc691e68583baf3c17690cfe.tar.gz gentoo-dec08cc6d2acf582bc691e68583baf3c17690cfe.tar.bz2 gentoo-dec08cc6d2acf582bc691e68583baf3c17690cfe.zip |
app-arch/cabextract: add live ebuild
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/cabextract/cabextract-9999.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/app-arch/cabextract/cabextract-9999.ebuild b/app-arch/cabextract/cabextract-9999.ebuild new file mode 100644 index 000000000000..49070540a767 --- /dev/null +++ b/app-arch/cabextract/cabextract-9999.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit autotools toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/kyz/libmspack.git" + inherit git-r3 + MY_P="${PN}-9999" + + LIBMSPACK_DEPEND="~dev-libs/libmspack-9999:=" +else + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" + MY_PV="${PV/_alpha/alpha}" + MY_P="${PN}-${MY_PV}" + SRC_URI="https://www.cabextract.org.uk/${P}.tar.gz" + + LIBMSPACK_DEPEND=">=dev-libs/libmspack-0.8_alpha:=" +fi + +DESCRIPTION="Extracts files from Microsoft cabinet archive files" +HOMEPAGE="https://www.cabextract.org.uk/" + +LICENSE="GPL-3" +SLOT="0" +IUSE="extras" + +DEPEND="${LIBMSPACK_DEPEND} + virtual/pkgconfig" +RDEPEND="extras? ( dev-lang/perl )" + +src_prepare() { + if [[ ${PV} == "9999" ]] ; then + # Re-create file layout from release tarball + pushd "${WORKDIR}" &>/dev/null || die + cp -aL "${S}"/${PN} "${WORKDIR}"/${PN}-source || die + rm -r "${S}" || die + mv "${WORKDIR}"/${PN}-source "${S}" || die + popd &>/dev/null || die + fi + + default + + eautoreconf +} + +src_configure() { + econf \ + --with-external-libmspack=yes +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + local DOCS=( AUTHORS ChangeLog NEWS README TODO doc/magic ) + default + docinto html + dodoc doc/wince_cab_format.html + if use extras; then + dobin src/{wince_info,wince_rename,cabinfo,cabsplit} + fi +} |