You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.4 KiB
74 lines
1.4 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
|
inherit autotools pax-utils
|
||
|
if [[ -z ${PV%%*9999} ]]; then
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="git://wimlib.net/${PN}"
|
||
|
else
|
||
|
MY_PV="${PV/_/-}"
|
||
|
MY_PV="${MY_PV^^}"
|
||
4 years ago
|
SRC_URI="https://wimlib.net/downloads/${PN}-${MY_PV}.tar.gz"
|
||
3 years ago
|
KEYWORDS="amd64 x86"
|
||
7 years ago
|
fi
|
||
|
|
||
|
DESCRIPTION="The open source Windows Imaging (WIM) library"
|
||
|
HOMEPAGE="https://wimlib.net/"
|
||
|
|
||
|
LICENSE="|| ( GPL-3+ LGPL-3+ ) CC0-1.0"
|
||
|
SLOT="0"
|
||
4 years ago
|
IUSE="cpu_flags_x86_ssse3 fuse iso ntfs openssl test threads yasm"
|
||
7 years ago
|
REQUIRED_USE="cpu_flags_x86_ssse3? ( !openssl )"
|
||
|
|
||
4 years ago
|
RESTRICT="!test? ( test )"
|
||
6 years ago
|
|
||
4 years ago
|
BDEPEND="
|
||
|
virtual/pkgconfig
|
||
|
cpu_flags_x86_ssse3? (
|
||
|
yasm? ( dev-lang/yasm )
|
||
|
!yasm? ( dev-lang/nasm )
|
||
|
)
|
||
|
"
|
||
7 years ago
|
RDEPEND="
|
||
|
dev-libs/libxml2:2
|
||
3 years ago
|
ntfs? ( sys-fs/ntfs3g:= )
|
||
7 years ago
|
fuse? ( sys-fs/fuse:0 )
|
||
3 years ago
|
openssl? ( dev-libs/openssl:= )
|
||
7 years ago
|
iso? (
|
||
|
app-arch/cabextract
|
||
|
app-cdr/cdrtools
|
||
|
)
|
||
7 years ago
|
"
|
||
4 years ago
|
DEPEND="${RDEPEND}"
|
||
7 years ago
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local myeconfargs=(
|
||
|
$(use_with ntfs ntfs-3g)
|
||
|
$(use_with fuse)
|
||
|
$(use_enable cpu_flags_x86_ssse3 ssse3-sha1)
|
||
|
$(use_with openssl libcrypto)
|
||
|
$(use_enable threads multithreaded-compression)
|
||
4 years ago
|
$(use_enable test test-support)
|
||
4 years ago
|
--disable-static
|
||
7 years ago
|
)
|
||
|
ac_cv_prog_NASM="$(usex yasm yasm nasm)" \
|
||
|
econf "${myeconfargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
4 years ago
|
default
|
||
7 years ago
|
pax-mark m "${S}"/.libs/wimlib-imagex
|
||
|
}
|
||
4 years ago
|
|
||
|
src_install() {
|
||
|
default
|
||
|
find "${ED}" -name '*.la' -delete || die
|
||
|
}
|