1 |
commit: 6fac7e1d3121a0611a11f66d945e65806bbae301 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 28 08:20:35 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 28 08:20:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fac7e1d |
7 |
|
8 |
sys-apps/prctl: drop CPP detection |
9 |
|
10 |
While at it modernized build system up to recent automake. |
11 |
|
12 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
sys-apps/prctl/files/Makefile.am | 3 +++ |
16 |
sys-apps/prctl/files/configure.ac | 13 ++++++++++ |
17 |
sys-apps/prctl/files/prctl-1.6-configure.in.patch | 20 ++++++++++++++++ |
18 |
sys-apps/prctl/prctl-1.6-r1.ebuild | 29 +++++++++++++++++++++++ |
19 |
4 files changed, 65 insertions(+) |
20 |
|
21 |
diff --git a/sys-apps/prctl/files/Makefile.am b/sys-apps/prctl/files/Makefile.am |
22 |
new file mode 100644 |
23 |
index 00000000000..aff321ed048 |
24 |
--- /dev/null |
25 |
+++ b/sys-apps/prctl/files/Makefile.am |
26 |
@@ -0,0 +1,3 @@ |
27 |
+bin_PROGRAMS = prctl |
28 |
+prctl_SOURCES = prctl.c |
29 |
+man_MANS = prctl.1 |
30 |
|
31 |
diff --git a/sys-apps/prctl/files/configure.ac b/sys-apps/prctl/files/configure.ac |
32 |
new file mode 100644 |
33 |
index 00000000000..d29ea9dd274 |
34 |
--- /dev/null |
35 |
+++ b/sys-apps/prctl/files/configure.ac |
36 |
@@ -0,0 +1,13 @@ |
37 |
+AC_INIT([prctl], [1.6]) |
38 |
+AC_CONFIG_SRCDIR([prctl.c]) |
39 |
+AM_INIT_AUTOMAKE([foreign]) |
40 |
+ |
41 |
+AC_PROG_CC |
42 |
+ |
43 |
+AC_HEADER_STDC |
44 |
+AC_CHECK_HEADERS(unistd.h) |
45 |
+ |
46 |
+AC_CHECK_FUNCS(strerror) |
47 |
+ |
48 |
+AC_CONFIG_FILES([Makefile]) |
49 |
+AC_OUTPUT |
50 |
|
51 |
diff --git a/sys-apps/prctl/files/prctl-1.6-configure.in.patch b/sys-apps/prctl/files/prctl-1.6-configure.in.patch |
52 |
new file mode 100644 |
53 |
index 00000000000..492733eb97e |
54 |
--- /dev/null |
55 |
+++ b/sys-apps/prctl/files/prctl-1.6-configure.in.patch |
56 |
@@ -0,0 +1,20 @@ |
57 |
+Restored configure.in based on tarball's configure |
58 |
+--- /dev/null |
59 |
++++ b/configure.in |
60 |
+@@ -0,0 +1,16 @@ |
61 |
++AC_INIT(prctl.c) |
62 |
++ |
63 |
++AC_PROG_LN_S |
64 |
++AC_PROG_CC |
65 |
++AC_PROG_CPP |
66 |
++AC_PROG_INSTALL |
67 |
++ |
68 |
++ |
69 |
++AC_HEADER_STDC |
70 |
++AC_CHECK_HEADERS(unistd.h) |
71 |
++ |
72 |
++ |
73 |
++AC_CHECK_FUNCS(strerror) |
74 |
++AC_SUBST(ASCPP) |
75 |
++AC_SUBST(INSTALL) |
76 |
++AC_OUTPUT(Makefile) |
77 |
|
78 |
diff --git a/sys-apps/prctl/prctl-1.6-r1.ebuild b/sys-apps/prctl/prctl-1.6-r1.ebuild |
79 |
new file mode 100644 |
80 |
index 00000000000..419cae89d00 |
81 |
--- /dev/null |
82 |
+++ b/sys-apps/prctl/prctl-1.6-r1.ebuild |
83 |
@@ -0,0 +1,29 @@ |
84 |
+# Copyright 1999-2020 Gentoo Authors |
85 |
+# Distributed under the terms of the GNU General Public License v2 |
86 |
+ |
87 |
+EAPI=7 |
88 |
+ |
89 |
+inherit autotools toolchain-funcs |
90 |
+ |
91 |
+DESCRIPTION="Tool to query and modify process behavior" |
92 |
+HOMEPAGE="https://sourceforge.net/projects/prctl/" |
93 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
94 |
+ |
95 |
+LICENSE="GPL-2" |
96 |
+SLOT="0" |
97 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~x86" |
98 |
+IUSE="" |
99 |
+ |
100 |
+RDEPEND="" |
101 |
+DEPEND="" |
102 |
+ |
103 |
+PATCHES=( |
104 |
+ "${FILESDIR}"/${P}-no-implicits.patch |
105 |
+) |
106 |
+ |
107 |
+src_prepare() { |
108 |
+ default |
109 |
+ |
110 |
+ cp "${FILESDIR}"/{Makefile.am,configure.ac} ./ || die |
111 |
+ eautoreconf |
112 |
+} |