Skip to content

Commit

Permalink
dev-libs/libmspack: Put utils behing USE flag to resolve file collisi…
Browse files Browse the repository at this point in the history
…on with app-arch/mscompress, bug 634940

Package-Manager: Portage-2.3.8, Repoman-2.3.4
  • Loading branch information
reavertm committed Nov 3, 2017
1 parent df1387e commit 1f52067
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
9 changes: 7 additions & 2 deletions dev-libs/libmspack/libmspack-0.6_alpha.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ SRC_URI="https://www.cabextract.org.uk/libmspack/libmspack-${MY_PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc static-libs"
IUSE="debug doc static-libs utils"

DEPEND=""
RDEPEND=""
RDEPEND="
utils? ( !app-arch/mscompress )
"

PATCHES=(
"${FILESDIR}/${P}-fix-tests.patch"
Expand Down Expand Up @@ -47,4 +49,7 @@ multilib_src_install_all() {
if use doc; then
rm "${ED}"/usr/share/doc/"${PF}"/html/{Makefile*,Doxyfile*} || die
fi
if ! use utils; then
rm "${ED}"/usr/bin/* || die
fi
}
11 changes: 7 additions & 4 deletions dev-libs/libmspack/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Maciej Mrozowski</name>
</maintainer>
<maintainer type="person">
<email>[email protected]</email>
<name>Maciej Mrozowski</name>
</maintainer>
<use>
<flag name="utils">Enables building cabrip, chmextract, msexpand and oabextract</flag>
</use>
</pkgmetadata>

0 comments on commit 1f52067

Please sign in to comment.