Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/mtools/
Date: Sun, 05 Jun 2022 05:38:55
Message-Id: 1654407512.82ccdbae4b5a228a7f8d4705b741e4bb29640a15.sam@gentoo
1 commit: 82ccdbae4b5a228a7f8d4705b741e4bb29640a15
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 5 03:20:17 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 5 05:38:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82ccdbae
7
8 sys-fs/mtools: add 4.0.40
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-fs/mtools/Manifest | 1 +
13 sys-fs/mtools/mtools-4.0.40.ebuild | 51 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/sys-fs/mtools/Manifest b/sys-fs/mtools/Manifest
17 index 5a3c67d64b02..19ab79502124 100644
18 --- a/sys-fs/mtools/Manifest
19 +++ b/sys-fs/mtools/Manifest
20 @@ -1,2 +1,3 @@
21 DIST mtools-4.0.37.tar.bz2 441076 BLAKE2B a84ff9e532a1896706589dfe7e62b1e400baf0ab9b86cc3d4a09bd4a0a24d1e86f504b9005c98765f62d735d227d0a1d5ab78354c587c88e2d42a4146d127dc1 SHA512 5ff4da9050dd5d5c0929dd9977866086085bd8fef577f3c6ce2ed6fb958eec2304db612c0766e6be1a048819e29f62023cb0f0a9464a84ed7cc21de9561fadce
22 DIST mtools-4.0.39.tar.bz2 429751 BLAKE2B b1b04fa1614cf36245c60c3ef35de1869e53786dbc9a7e864278a51c9519c63b59fff9dffbd761fbc59782161ba201908b4a5b6792a7231fff6f27be2bea1d67 SHA512 6f84ce57a7c088b526e3e4fa7c509f1869a55b87951134d6257533d311b4a97496c44fa374de6f8cb15c645d60b9f9745ccbdf405d0d77a30a86e31ed8d54ce4
23 +DIST mtools-4.0.40.tar.bz2 447038 BLAKE2B 6ae2dbd2129d48528f6a36f81f44979b2dd977729e3f3f0ab5ff4aa8d29b0841cd770e2ed12f0f772676f6bcfeb3949d4fb79e240cf1d88524bbaa6cdfb4d26e SHA512 c3acf8723ae207d9eccdca3c2b55aed262175328417031397c14c7120a1e02f0c52c7fefc0145dfb09fb91f1d3e63254e7a45bc7edf50b1ecc87b7cc95d2f390
24
25 diff --git a/sys-fs/mtools/mtools-4.0.40.ebuild b/sys-fs/mtools/mtools-4.0.40.ebuild
26 new file mode 100644
27 index 000000000000..baaf64974625
28 --- /dev/null
29 +++ b/sys-fs/mtools/mtools-4.0.40.ebuild
30 @@ -0,0 +1,51 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit flag-o-matic
37 +
38 +DESCRIPTION="Utilities to access MS-DOS disks from Unix without mounting them"
39 +HOMEPAGE="https://www.gnu.org/software/mtools/ https://savannah.gnu.org/projects/mtools"
40 +SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
41 +
42 +LICENSE="GPL-3"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos ~x64-solaris"
45 +IUSE="X"
46 +
47 +RDEPEND="!elibc_glibc? ( virtual/libiconv )
48 + X? (
49 + x11-libs/libICE
50 + x11-libs/libXau
51 + x11-libs/libSM
52 + x11-libs/libX11
53 + x11-libs/libXt
54 + )"
55 +DEPEND="${RDEPEND}"
56 +
57 +src_configure() {
58 + if ! use elibc_glibc && ! use elibc_musl ; then
59 + # bug #447688
60 + append-libs "-liconv"
61 + fi
62 +
63 + local myeconfargs=(
64 + --sysconfdir="${EPREFIX}"/etc/mtools
65 + $(use_with X x)
66 + )
67 +
68 + econf "${myeconfargs[@]}"
69 +}
70 +
71 +src_install() {
72 + local -a DOCS=( README* Release.notes )
73 +
74 + default
75 +
76 + insinto /etc/mtools
77 + doins mtools.conf
78 +
79 + # Default is fine
80 + sed -i -e '/^SAMPLE FILE$/s:^:#:' "${ED}"/etc/mtools/mtools.conf || die
81 +}