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/files/, sys-fs/diskdev_cmds/
Date: Sat, 28 Sep 2019 12:37:37
Message-Id: 1569674246.64f7994bfc3e10a272af065482961553299453bf.slyfox@gentoo
1 commit: 64f7994bfc3e10a272af065482961553299453bf
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 28 12:35:54 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 28 12:37:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64f7994b
7
8 sys-fs/diskdev_cmds: bump up to EAPI=7
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 .../diskdev_cmds/diskdev_cmds-332.14_p1-r1.ebuild | 46 ++++++++++++++++++++++
14 .../files/diskdev_cmds-respect-cflags.patch | 4 +-
15 2 files changed, 48 insertions(+), 2 deletions(-)
16
17 diff --git a/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r1.ebuild b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r1.ebuild
18 new file mode 100644
19 index 00000000000..9a8a9f2239d
20 --- /dev/null
21 +++ b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r1.ebuild
22 @@ -0,0 +1,46 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +inherit toolchain-funcs
29 +
30 +MY_PV=${PV%_p*}
31 +
32 +DESCRIPTION="HFS and HFS+ utils ported from OSX, supplies mkfs and fsck"
33 +HOMEPAGE="http://opendarwin.org"
34 +SRC_URI="http://darwinsource.opendarwin.org/tarballs/apsl/diskdev_cmds-${MY_PV}.tar.gz
35 + mirror://gentoo/diskdev_cmds-${PV}.patch.bz2"
36 +LICENSE="APSL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
39 +IUSE=""
40 +DEPEND="dev-libs/openssl"
41 +RDEPEND="${DEPEND}"
42 +
43 +S="${WORKDIR}/${PN}-${MY_PV}"
44 +
45 +PATCHES=(
46 + "${WORKDIR}"/diskdev_cmds-${PV}.patch
47 + "${FILESDIR}"/diskdev_cmds-respect-cflags.patch
48 +)
49 +
50 +src_compile() {
51 + emake -f Makefile.lnx AR="$(tc-getAR)" CC="$(tc-getCC)"
52 +}
53 +
54 +src_install() {
55 + into /
56 + dosbin fsck_hfs.tproj/fsck_hfs
57 + dosbin newfs_hfs.tproj/newfs_hfs
58 + dosym /sbin/newfs_hfs /sbin/mkfs.hfs
59 + dosym /sbin/newfs_hfs /sbin/mkfs.hfsplus
60 + dosym /sbin/fsck_hfs /sbin/fsck.hfs
61 + dosym /sbin/fsck_hfs /sbin/fsck.hfsplus
62 + doman newfs_hfs.tproj/newfs_hfs.8
63 + newman newfs_hfs.tproj/newfs_hfs.8 mkfs.hfs.8
64 + newman newfs_hfs.tproj/newfs_hfs.8 mkfs.hfsplus.8
65 + doman fsck_hfs.tproj/fsck_hfs.8
66 + newman fsck_hfs.tproj/fsck_hfs.8 fsck.hfs.8
67 + newman fsck_hfs.tproj/fsck_hfs.8 fsck.hfsplus.8
68 +}
69
70 diff --git a/sys-fs/diskdev_cmds/files/diskdev_cmds-respect-cflags.patch b/sys-fs/diskdev_cmds/files/diskdev_cmds-respect-cflags.patch
71 index 3f939f61163..8acafce6c91 100644
72 --- a/sys-fs/diskdev_cmds/files/diskdev_cmds-respect-cflags.patch
73 +++ b/sys-fs/diskdev_cmds/files/diskdev_cmds-respect-cflags.patch
74 @@ -1,5 +1,5 @@
75 ---- Makefile.lnx.bak 2009-07-22 11:58:10.000000000 -0400
76 -+++ Makefile.lnx 2009-07-22 11:57:37.000000000 -0400
77 +--- a/Makefile.lnx.bak 2009-07-22 11:58:10.000000000 -0400
78 ++++ b/Makefile.lnx 2009-07-22 11:57:37.000000000 -0400
79 @@ -1,5 +1,5 @@
80 CC := gcc
81 -CFLAGS := -g3 -Wall -I$(PWD)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1