sys-apps/setserial: EAPI 6 bump.
authorPatrice Clement <monsieurp@gentoo.org>
Thu, 15 Jun 2017 20:30:30 +0000 (22:30 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Thu, 15 Jun 2017 20:30:30 +0000 (22:30 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.1

sys-apps/setserial/files/setserial-2.17-build.patch
sys-apps/setserial/files/setserial-2.17-headers.patch
sys-apps/setserial/files/setserial-2.17-manpage-updates.patch
sys-apps/setserial/files/setserial-2.17-spelling.patch
sys-apps/setserial/setserial-2.17-r5.ebuild [new file with mode: 0644]

index d3f3d69cead6058f865254e339eeefcac7ea577e..7e7ea25c8a063069ca6169442c23d4f616bab9cd 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.in
-+++ Makefile.in
+--- a/Makefile.in
++++ b/Makefile.in
 @@ -20,7 +20,7 @@
  all: setserial setserial.cat
  
index a6d5f38e3e6047ed1610e74da9927d06a788d1e3..f8aed4c4862cb50d0d39f81d1ced8e7a89f723d3 100644 (file)
@@ -1,5 +1,5 @@
---- setserial.c
-+++ setserial.c
+--- a/setserial.c
++++ b/setserial.c
 @@ -15,6 +15,9 @@
  #include <termios.h>
  #include <string.h>
index 02f4a454a3d571bc0af64ffbd3d23363842dc21f..3e6b7f016197a016b3608c8788b48d5fd97dc182 100644 (file)
@@ -1,5 +1,5 @@
---- setserial-2.17/setserial.8.in
-+++ setserial-2.17/setserial.8.in
+--- a/setserial.8.in
++++ b/setserial.8.in
 @@ -34,7 +34,7 @@
  program should be used.  Typically it is called from an
 -.I rc.serial
index 49ac5f41e72be8d0452a2949d22615785f338186..5275d4fa44c42a2b98906b41a4ce0189affb4c65 100644 (file)
@@ -1,7 +1,7 @@
 Ripped from Fedora.
 
---- setserial-2.17/setserial.c
-+++ setserial-2.17/setserial.c
+--- a/setserial.c
++++ b/setserial.c
 @@ -710,1 +710,1 @@
 -      fprintf(stderr, "\t  spd_normal\tuse 38.4kb when a buad rate of 38.4kb is selected\n");
 +      fprintf(stderr, "\t  spd_normal\tuse 38.4kb when a baud rate of 38.4kb is selected\n");
diff --git a/sys-apps/setserial/setserial-2.17-r5.ebuild b/sys-apps/setserial/setserial-2.17-r5.ebuild
new file mode 100644 (file)
index 0000000..2eaa330
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Configure your serial ports with it"
+HOMEPAGE="http://setserial.sourceforge.net/"
+SRC_URI="
+       ftp://tsx-11.mit.edu/pub/linux/sources/sbin/${P}.tar.gz
+       ftp://ftp.sunsite.org.uk/Mirrors/tsx-11.mit.edu/pub/linux/sources/sbin/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-spelling.patch
+       "${FILESDIR}"/${P}-manpage-updates.patch
+       "${FILESDIR}"/${P}-headers.patch
+       "${FILESDIR}"/${P}-build.patch
+       "${FILESDIR}"/${P}-hayes-esp.patch
+       "${FILESDIR}"/${P}-darwin.patch
+)
+
+src_compile() {
+       tc-export CC
+       emake "${PN}"
+}
+
+src_install() {
+       doman "${PN}.8"
+       into /
+       dobin "${PN}"
+
+       insinto /etc
+       doins serial.conf
+       newinitd "${FILESDIR}"/serial-2.17-r4 serial
+
+       einstalldocs
+       docinto txt
+       dodoc Documentation/*
+}