Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/diskdev_cmds/
Date: Wed, 01 Apr 2020 21:14:25
Message-Id: 1585775650.cb8a551aae61a74acefe9faf2e0f8e2b4526275e.slyfox@gentoo
1 commit: cb8a551aae61a74acefe9faf2e0f8e2b4526275e
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 1 21:04:09 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 1 21:14:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb8a551a
7
8 sys-fs/diskdev_cmds: use relative symlinks in /sbin
9
10 Package-Manager: Portage-2.3.96, Repoman-2.3.22
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 .../diskdev_cmds/diskdev_cmds-332.14_p1-r2.ebuild | 49 ++++++++++++++++++++++
14 1 file changed, 49 insertions(+)
15
16 diff --git a/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r2.ebuild b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r2.ebuild
17 new file mode 100644
18 index 00000000000..b4a3180e1b4
19 --- /dev/null
20 +++ b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r2.ebuild
21 @@ -0,0 +1,49 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit toolchain-funcs
28 +
29 +MY_PV=${PV%_p*}
30 +
31 +DESCRIPTION="HFS and HFS+ utils ported from OSX, supplies mkfs and fsck"
32 +HOMEPAGE="http://opendarwin.org"
33 +SRC_URI="http://darwinsource.opendarwin.org/tarballs/apsl/diskdev_cmds-${MY_PV}.tar.gz
34 + mirror://gentoo/diskdev_cmds-${PV}.patch.bz2"
35 +LICENSE="APSL-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
38 +IUSE=""
39 +DEPEND="dev-libs/openssl"
40 +RDEPEND="${DEPEND}"
41 +
42 +S="${WORKDIR}/${PN}-${MY_PV}"
43 +
44 +PATCHES=(
45 + "${WORKDIR}"/diskdev_cmds-${PV}.patch
46 + "${FILESDIR}"/diskdev_cmds-respect-cflags.patch
47 +)
48 +
49 +src_compile() {
50 + emake -f Makefile.lnx AR="$(tc-getAR)" CC="$(tc-getCC)"
51 +}
52 +
53 +src_install() {
54 + into /
55 +
56 + dosbin fsck_hfs.tproj/fsck_hfs
57 + dosbin newfs_hfs.tproj/newfs_hfs
58 +
59 + dosym newfs_hfs /sbin/mkfs.hfs
60 + dosym newfs_hfs /sbin/mkfs.hfsplus
61 + dosym fsck_hfs /sbin/fsck.hfs
62 + dosym fsck_hfs /sbin/fsck.hfsplus
63 + doman newfs_hfs.tproj/newfs_hfs.8
64 +
65 + newman newfs_hfs.tproj/newfs_hfs.8 mkfs.hfs.8
66 + newman newfs_hfs.tproj/newfs_hfs.8 mkfs.hfsplus.8
67 + doman fsck_hfs.tproj/fsck_hfs.8
68 + newman fsck_hfs.tproj/fsck_hfs.8 fsck.hfs.8
69 + newman fsck_hfs.tproj/fsck_hfs.8 fsck.hfsplus.8
70 +}