sys-fs/mtools: Sync with Gentoo

It's from Gentoo commit 0bb5c4495f974129ca6bccab99c1facc63cb21f1.
This commit is contained in:
Krzesimir Nowak 2023-07-28 12:53:57 +02:00
parent a2eb825585
commit d53eb3969c
4 changed files with 74 additions and 12 deletions

View File

@ -1 +1,2 @@
DIST mtools-4.0.35.tar.bz2 455988 BLAKE2B 9c1ac7f3ad3f9f13a572d0e1ea3c3a9d79bd08f0ae963c7357a19a687b74536cd8442eb167a9e50f7d22398c56736753b0d98bccdaa4c7d8427d1c09e1dd786c SHA512 ef563b3319285667993c82d819e08cb819a6bcd71c466fc252568996b4218cfb3731107ffcd6150ba33c0837e012e02057def41e2b011f751eaf550bfa366a10
DIST mtools-4.0.42.tar.bz2 441506 BLAKE2B 07afec0aea49427ec71ae8ddde9c1dceb33b2533e9acbde3564b0715efce784b5ea8c2122ff588f84e42435abb73ac9912520fd654a078bf0336e62f35f3ce2a SHA512 fd8d56d2dea9ce5e2b311b29ebdd4d89ec7baaf5f2fbfdc85019d480eff4d198ebf0e591c0f28ee1e39d8b81d49d7d4e9ed94b0e94e5b02ce9bbc03632124811
DIST mtools-4.0.43.tar.bz2 443673 BLAKE2B d000839bbb6bc647eb5a32b08b40b1350cd0a85fd564f0705ecbfe20f8f4ef21bf2d59cd0ccd7a159c829c019c6c2f3cbdef82ff3f4a9e8828cc13d44ddabd1d SHA512 b70e483688124a653dd333ab127494dab12d413809680a4846dc4ae5c166a0b9938a2ab290e518c1f1a5b18ed96d2c2a29d92d61b16b772a4ab5e495379fe410

View File

@ -7,5 +7,6 @@
</maintainer>
<upstream>
<remote-id type="cpe">cpe:/a:mtools:*</remote-id>
<remote-id type="savannah">mtools</remote-id>
</upstream>
</pkgmetadata>

View File

@ -1,46 +1,53 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
EAPI=8
inherit flag-o-matic
DESCRIPTION="utilities to access MS-DOS disks from Unix without mounting them"
DESCRIPTION="Utilities to access MS-DOS disks from Unix without mounting them"
HOMEPAGE="https://www.gnu.org/software/mtools/ https://savannah.gnu.org/projects/mtools"
SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~x64-macos ~x64-solaris"
IUSE="X elibc_glibc"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv sparc x86 ~x64-macos ~x64-solaris"
IUSE="gui"
RDEPEND="
!elibc_glibc? ( virtual/libiconv )
X? (
virtual/libiconv
gui? (
x11-libs/libICE
x11-libs/libXau
x11-libs/libSM
x11-libs/libX11
x11-libs/libXt
)"
)
"
DEPEND="${RDEPEND}"
src_configure() {
use !elibc_glibc && use !elibc_musl && append-libs "-liconv" #447688
if ! use elibc_glibc && ! use elibc_musl ; then
# bug #447688
append-libs "-liconv"
fi
local myeconfargs=(
--sysconfdir="${EPREFIX}"/etc/mtools
$(use_with X x)
$(use_with gui x)
)
econf "${myeconfargs[@]}"
}
src_install() {
local -a DOCS=( README* Release.notes )
default
insinto /etc/mtools
doins mtools.conf
# default is fine
# Default is fine
sed -i -e '/^SAMPLE FILE$/s:^:#:' "${ED}"/etc/mtools/mtools.conf || die
}

View File

@ -0,0 +1,53 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic
DESCRIPTION="Utilities to access MS-DOS disks from Unix without mounting them"
HOMEPAGE="https://www.gnu.org/software/mtools/ https://savannah.gnu.org/projects/mtools"
SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv sparc x86 ~x64-macos ~x64-solaris"
IUSE="gui"
RDEPEND="
virtual/libiconv
gui? (
x11-libs/libICE
x11-libs/libXau
x11-libs/libSM
x11-libs/libX11
x11-libs/libXt
)
"
DEPEND="${RDEPEND}"
src_configure() {
if ! use elibc_glibc && ! use elibc_musl ; then
# bug #447688
append-libs "-liconv"
fi
local myeconfargs=(
--sysconfdir="${EPREFIX}"/etc/mtools
$(use_with gui x)
)
econf "${myeconfargs[@]}"
}
src_install() {
local -a DOCS=( README* Release.notes )
default
insinto /etc/mtools
doins mtools.conf
# Default is fine
sed -i -e '/^SAMPLE FILE$/s:^:#:' "${ED}"/etc/mtools/mtools.conf || die
}