sys-boot/palo: Version 2.11
authorJeroen Roovers <jer@gentoo.org>
Wed, 7 Aug 2019 07:09:38 +0000 (09:09 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 7 Aug 2019 07:25:33 +0000 (09:25 +0200)
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
sys-boot/palo/Manifest
sys-boot/palo/files/palo-9999-toolchain.patch [deleted file]
sys-boot/palo/palo-2.11.ebuild [new file with mode: 0644]
sys-boot/palo/palo-9999.ebuild

index 2895fabca7a7b48bded6a58b252ee18f55b01fa9..aef6a7d9922b0d13a23b27cbdedb2ca489188f89 100644 (file)
@@ -1 +1,2 @@
 DIST palo-2.00.tar.gz 124484 BLAKE2B b46b616acf51534382f6a775b456cdcbd4771d6bc9d7a8339ad788a5c5a4a333e98a6e4815c40a6750408b1e8168a19800da11ddf7125621f77d478a651d9c75 SHA512 b6dab81e6c2641a64a40561a65b5412ee702136ac79dab94619e0094faf011e158c67e681f45d5aa51423f5f162da7c1fd07b391b58e8a2100e1306eb7148056
+DIST palo-2.11.tar.gz 129144 BLAKE2B 25ea9462e7a87da333ace52be624aab65cc1fa4d20848bdec4ba1cea468b3ecd850dd7ceb936e9f2bd5761add766df65d054dc1b5d3f9cee991e9b3e4ddf864a SHA512 26e989ce0c652d6fafdc98d3ab3564d4adc5c943e3d44b0275beb8c385ad52cad0a29ad360e4992fb35c0f2036e29d3eee9b8f6594a53eaea9c3b973a60d9029
diff --git a/sys-boot/palo/files/palo-9999-toolchain.patch b/sys-boot/palo/files/palo-9999-toolchain.patch
deleted file mode 100644 (file)
index 4869f7e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/palo/Makefile
-+++ b/palo/Makefile
-@@ -10,9 +10,9 @@
- OS := $(shell uname -s)
- CC?=cc
- ifeq ($(strip ${OS}),HP-UX)
--CFLAGS=-g -O -I../include -I../lib -I$(PA)/include
-+CFLAGS=-O -I../include -I../lib -I$(PA)/include
- else
--CFLAGS=-g -O -I../include -I../lib -D_FILE_OFFSET_BITS=64
-+CFLAGS=-O -I../include -I../lib -D_FILE_OFFSET_BITS=64
- endif
- ifneq ("$(wildcard /etc/debian_version)","")
diff --git a/sys-boot/palo/palo-2.11.ebuild b/sys-boot/palo/palo-2.11.ebuild
new file mode 100644 (file)
index 0000000..cf05c9a
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+DESCRIPTION="PALO : PArisc Linux Loader"
+HOMEPAGE="http://parisc-linux.org/ https://parisc.wiki.kernel.org/"
+SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/deller/${PN}.git/snapshot/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~hppa"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.00-toolchain.patch
+)
+
+src_compile() {
+       local target
+       for target in '-C palo' '-C ipl' 'iplboot'; do
+               emake AR=$(tc-getAR) CC=$(tc-getCC) LD=$(tc-getLD) ${target}
+       done
+}
+
+src_install() {
+       into /
+       dosbin palo/palo
+
+       insinto /usr/share/palo
+       doins iplboot
+
+       insinto /etc
+       doins "${FILESDIR}"/palo.conf
+
+       insinto /etc/kernel/postinst.d
+       insopts -m 0744
+       doins "${FILESDIR}"/99palo
+
+       doman palo.8
+
+       dodoc TODO debian/changelog README.html
+}
index 7800f7b0c900673f8c12c94f5ea41abf39304a84..c7ae9c107e1b33fc34d1873804d2e8646f371a9e 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit flag-o-matic git-r3 toolchain-funcs
+inherit git-r3 toolchain-funcs
 
 DESCRIPTION="PALO : PArisc Linux Loader"
 HOMEPAGE="http://parisc-linux.org/ https://parisc.wiki.kernel.org/"
@@ -13,7 +13,7 @@ SLOT="0"
 KEYWORDS=""
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-9999-toolchain.patch
+       "${FILESDIR}"/${PN}-2.00-toolchain.patch
 )
 
 src_prepare() {
@@ -32,6 +32,9 @@ src_install() {
        into /
        dosbin palo/palo
 
+       insinto /usr/share/palo
+       doins iplboot
+
        insinto /etc
        doins "${FILESDIR}"/palo.conf
 
@@ -42,7 +45,4 @@ src_install() {
        doman palo.8
 
        dodoc TODO debian/changelog README.html
-
-       insinto /usr/share/palo
-       doins iplboot
 }