Marked as ~x86-fbsd. Add patches to build on FreeBSD
authorNaohiro Aota <naota@gentoo.org>
Fri, 14 Oct 2011 03:12:38 +0000 (03:12 +0000)
committerNaohiro Aota <naota@gentoo.org>
Fri, 14 Oct 2011 03:12:38 +0000 (03:12 +0000)
Package-Manager: portage-2.2.0_alpha64/cvs/Linux x86_64

dev-libs/newt/ChangeLog
dev-libs/newt/Manifest
dev-libs/newt/files/newt-0.52.12-install.patch [new file with mode: 0644]
dev-libs/newt/files/newt-0.52.12-whiptail.patch [new file with mode: 0644]
dev-libs/newt/newt-0.52.12.ebuild

index b293eb5ca557b06c6b2a282e047cc5a091c9841b..6ea8379134a3fb3231370aa11d09046544fc9a37 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for dev-libs/newt
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/ChangeLog,v 1.75 2011/10/14 02:53:38 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/ChangeLog,v 1.76 2011/10/14 03:12:38 naota Exp $
+
+  14 Oct 2011; Naohiro Aota <naota@gentoo.org> newt-0.52.12.ebuild,
+  +files/newt-0.52.12-install.patch, +files/newt-0.52.12-whiptail.patch:
+  Marked as ~x86-fbsd. Add patches to build on FreeBSD
 
   14 Oct 2011; Naohiro Aota <naota@gentoo.org> metadata.xml:
   Assign myself as maintainer.
index dcdb9c3139c58bc00f24e7c68a2bb299479846ab..6e18267a302199f805d323cc48cb557f0eb64dcd 100644 (file)
@@ -1,14 +1,16 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
+AUX newt-0.52.12-install.patch 617 RMD160 ee73f5b89833b13ad3de3d4993f28f4b8651e327 SHA1 c72b81307caa262104797638fb3df3155770fa24 SHA256 1f6a5c683c5152b5066c4760d9307e63f3bac1e126c0575e57714d108701556b
+AUX newt-0.52.12-whiptail.patch 276 RMD160 6e0af2aa97e5728566ba8eb710bba069a3bc578b SHA1 65ccd6119ff5529b73256c1d0558053d8e0bbfee SHA256 c2a498ba3bbb5dd600ad955d92075b071176c78d79c0b62f467db9082400bf36
 DIST newt-0.52.12.tar.gz 178027 RMD160 0d34b278e72c1b1305fc110e491e3bc96b42a374 SHA1 6952115806c7b1dbc36858eb4ca0596b235cf6f4 SHA256 2ba88dc3d118daf509c58e3707c43ad57dd3415d8164054e93fe76439f348529
-EBUILD newt-0.52.12.ebuild 1619 RMD160 95150ad2e92c62ff8f3735330849e97df406ce02 SHA1 22a0e85ec58db2b3eabb4665b8537fa56f13da35 SHA256 ab2d761ffb11137aa5993787cb69ab162c819f51cb9832a0e6222c442bd516b8
-MISC ChangeLog 10574 RMD160 a476f1079e371ae80949b3e8e4065f181c475328 SHA1 c39ad5201c43258261c02642b0124fa47874d4f6 SHA256 514aa6dbec7e867c5024c52de57f60f32fa21050cefe60793f3dd2d8c62137df
+EBUILD newt-0.52.12.ebuild 1712 RMD160 7f8a656743fbb3d7ff81d729c05f8b16a1a603a3 SHA1 4e44332ee0886362d3414d812b55afe344e20553 SHA256 a3ec5c2d26a7d67bfa5d26f9776b3ff33d3510ed03a9ff00cc9127f7f2320cf9
+MISC ChangeLog 10771 RMD160 0d9e87810975d83eb55480ea77816006a1ef4362 SHA1 3a533842eed6c42f7aac7d81d621600412e64548 SHA256 ad23b0f4f3e133226a0b272be87d701934fdf024f1d3c69c8fe8ba496cb9201f
 MISC metadata.xml 202 RMD160 bb6dfca1294b7a3796e361c3f69f186275ee5f32 SHA1 c12cef549a1dfea6b77e5580146e209a5404da43 SHA256 36dd3867461c37202f288f649ddac9571acba7bbee47e1ab46a5b72074e986ab
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (GNU/Linux)
 
-iEYEARECAAYFAk6XpEQACgkQGpDnPLSHuMDNWACgxmz6r4SWeSANvcucikxr+/vJ
-iicAn0lQlko+Ckb2JjNaVhZrbFFQbdpm
-=1wPj
+iEYEARECAAYFAk6XqKoACgkQGpDnPLSHuMDL+wCfW6+a5N2IUg4SNy78wWgs79Bn
+6qoAoKO8z8kw4c/Y0SdLSigTwpX+srp2
+=4g0J
 -----END PGP SIGNATURE-----
diff --git a/dev-libs/newt/files/newt-0.52.12-install.patch b/dev-libs/newt/files/newt-0.52.12-install.patch
new file mode 100644 (file)
index 0000000..b60f96f
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/Makefile.in b/Makefile.in
+index 7a5f1fd..16d7fd8 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -119,7 +119,8 @@ install: $(LIBNEWT) install-sh whiptail
+       install -m 755 whiptail $(DESTDIR)/$(bindir)
+       install -m 644 whiptail.1 $(DESTDIR)/$(man1dir)
+       $(MAKE) -C po datadir=$(DESTDIR)/$(datadir) install
+-      install -m 644 -D libnewt.pc $(DESTDIR)/$(pkgconfigdir)/libnewt.pc
++      install -d $(DESTDIR)/$(pkgconfigdir)
++      install -m 644 libnewt.pc $(DESTDIR)/$(pkgconfigdir)/libnewt.pc
+ install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
+       [ -d $(DESTDIR)/$(libdir) ] || install -m 755 -d $(DESTDIR)/$(libdir)
diff --git a/dev-libs/newt/files/newt-0.52.12-whiptail.patch b/dev-libs/newt/files/newt-0.52.12-whiptail.patch
new file mode 100644 (file)
index 0000000..7af45cb
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/whiptail.c b/whiptail.c
+index 09eca15..ac80652 100644
+--- a/whiptail.c
++++ b/whiptail.c
+@@ -8,6 +8,9 @@
+ #include <unistd.h>
+ #include <wchar.h>
+ #include <slang.h>
++#ifdef __FreeBSD__
++# include <sys/stat.h>
++#endif
+ #include "nls.h"
+ #include "dialogboxes.h"
index 0a25dbfa1223158a7ed69e813ae0614794dfe5b4..e0cf4941f208d9e038777a8a1d636e4df6dda013 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/newt-0.52.12.ebuild,v 1.9 2011/03/01 01:19:47 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/newt-0.52.12.ebuild,v 1.10 2011/10/14 03:12:38 naota Exp $
 
 EAPI="3"
 PYTHON_DEPEND="2"
@@ -13,7 +13,7 @@ SRC_URI="https://fedorahosted.org/releases/n/e/newt/${P}.tar.gz"
 
 LICENSE="LGPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
 IUSE="gpm tcl nls"
 
 RDEPEND="=sys-libs/slang-2*
@@ -44,6 +44,9 @@ src_prepare() {
                -e 's|instroot|DESTDIR|g' \
                -e 's|  make |  $(MAKE) |g' \
                || die "sed Makefile.in"
+
+       epatch "${FILESDIR}"/${P}-whiptail.patch \
+                  "${FILESDIR}"/${P}-install.patch
 }
 
 src_configure() {