summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-03-26 22:05:45 -0500
committerAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-03-26 22:05:45 -0500
commit16bdd1a8be055200ea6249f49e149312cfbf8b4a (patch)
tree7197b42e5f1688a14115e8325cfbc9b92ba47ec1
parenta6b8c1a607b5f3125e9fcc6ea8a7ec66d1e33899 (diff)
downloadpackages-16bdd1a8be055200ea6249f49e149312cfbf8b4a.tar.gz
packages-16bdd1a8be055200ea6249f49e149312cfbf8b4a.tar.bz2
packages-16bdd1a8be055200ea6249f49e149312cfbf8b4a.tar.xz
packages-16bdd1a8be055200ea6249f49e149312cfbf8b4a.zip
sys-fs/mac-fdisk: EAPI=6, fix musl patch
-rw-r--r--sys-fs/mac-fdisk/files/mac-fdisk-non-glibc-support.patch4
-rw-r--r--sys-fs/mac-fdisk/mac-fdisk-0.1_p16-r1.ebuild38
2 files changed, 40 insertions, 2 deletions
diff --git a/sys-fs/mac-fdisk/files/mac-fdisk-non-glibc-support.patch b/sys-fs/mac-fdisk/files/mac-fdisk-non-glibc-support.patch
index f97838dcf..ae54822b2 100644
--- a/sys-fs/mac-fdisk/files/mac-fdisk-non-glibc-support.patch
+++ b/sys-fs/mac-fdisk/files/mac-fdisk-non-glibc-support.patch
@@ -1,5 +1,5 @@
---- work/mac-fdisk-0.1.orig/io.c 2016-01-24 03:19:51.647734970 -0600
-+++ work/mac-fdisk-0.1.orig/io.c 2016-01-24 03:27:08.952825190 -0600
+--- a/io.c 2016-01-24 03:19:51.647734970 -0600
++++ b/io.c 2016-01-24 03:27:08.952825190 -0600
@@ -31,11 +31,9 @@
#ifndef __linux__
#include <SCSI.h>
diff --git a/sys-fs/mac-fdisk/mac-fdisk-0.1_p16-r1.ebuild b/sys-fs/mac-fdisk/mac-fdisk-0.1_p16-r1.ebuild
new file mode 100644
index 000000000..d8cbfe774
--- /dev/null
+++ b/sys-fs/mac-fdisk/mac-fdisk-0.1_p16-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2015-2016 Adélie Linux Team
+# Distributed under the terms of the NCSA License
+
+EAPI=6
+
+DESCRIPTION="Mac/PowerMac disk partitioning utility"
+HOMEPAGE="ftp://ftp.mklinux.apple.com/pub/Other_Tools/"
+SRC_URI="
+ mirror://debian/pool/main/m/mac-fdisk/${PN}_${PV/_p*}.orig.tar.gz
+ mirror://debian/pool/main/m/mac-fdisk/${PN}_${PV/_p*}-${PV/*_p}.diff.gz
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+S=${WORKDIR}/${P/_p*}.orig
+
+src_prepare() {
+ eapply "${WORKDIR}"/${PN}_${PV/_p*}-${PV/*_p}.diff
+ eapply "${FILESDIR}"
+ eapply_user
+}
+
+src_compile () {
+ emake CFLAGS="-D_GNU_SOURCE"
+}
+
+src_install() {
+ into /
+ newsbin pdisk mac-fdisk
+ newsbin fdisk pmac-fdisk
+
+ into /usr
+ newman mac-fdisk.8.in mac-fdisk.8
+ newman pmac-fdisk.8.in pmac-fdisk.8
+ dodoc README HISTORY
+}