summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-07-01 10:12:22 +0000
committerJustin Lecher <jlec@gentoo.org>2012-07-01 10:12:22 +0000
commite29f2e31789828002392d0d03b4edf8791f7b513 (patch)
tree252c0740ade5afa3fdf7bb75b78a482b8674bd98 /dev-libs/libtrain
parentapp-dicts/eblook: Respect LDFLAGS, #337743; bumped to EAPI=4 (diff)
downloadhistorical-e29f2e31789828002392d0d03b4edf8791f7b513.tar.gz
historical-e29f2e31789828002392d0d03b4edf8791f7b513.tar.bz2
historical-e29f2e31789828002392d0d03b4edf8791f7b513.zip
dev-libs/libtrain: Fix some implicit declarations, respect LDFLAGS #337649; bump to EAPI=4, handle debug configure option
Package-Manager: portage-2.2.0_alpha114/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/libtrain')
-rw-r--r--dev-libs/libtrain/ChangeLog9
-rw-r--r--dev-libs/libtrain/Manifest20
-rw-r--r--dev-libs/libtrain/files/libtrain-0.9b-impl-dec.patch29
-rw-r--r--dev-libs/libtrain/libtrain-0.9b.ebuild25
-rw-r--r--dev-libs/libtrain/metadata.xml6
5 files changed, 61 insertions, 28 deletions
diff --git a/dev-libs/libtrain/ChangeLog b/dev-libs/libtrain/ChangeLog
index 84a4284dac31..9174ad9b21a5 100644
--- a/dev-libs/libtrain/ChangeLog
+++ b/dev-libs/libtrain/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/libtrain
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtrain/ChangeLog,v 1.11 2009/09/23 17:24:33 patrick Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtrain/ChangeLog,v 1.12 2012/07/01 10:12:22 jlec Exp $
+
+ 01 Jul 2012; Justin Lecher <jlec@gentoo.org> libtrain-0.9b.ebuild,
+ +files/libtrain-0.9b-impl-dec.patch, metadata.xml:
+ Fix some implicit declarations, respect LDFLAGS #337649; bump to EAPI=4,
+ handle debug configure option
23 Sep 2009; Patrick Lauer <patrick@gentoo.org> libtrain-0.9b.ebuild:
Remove virtual/libc
diff --git a/dev-libs/libtrain/Manifest b/dev-libs/libtrain/Manifest
index 876dd18dbfb9..dbf6e309ad55 100644
--- a/dev-libs/libtrain/Manifest
+++ b/dev-libs/libtrain/Manifest
@@ -1,16 +1,16 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
+Hash: SHA512
+AUX libtrain-0.9b-impl-dec.patch 764 RMD160 08fc7bff219a8f16c39bf4c6aa98449817f949f2 SHA1 3c8d83a627b3ba2088616352265f3f6d3d781354 SHA256 096da3ca6ed3fd28a9834e5145a22ff97a8209440457ce3f4515ef8af6f64777
DIST libtrain-0.9b.tar.gz 167075 RMD160 8ecf0446b8eb41131547f0f55c3c71d5409605c1 SHA1 e000792d25b5dfa4a23f5708bcd08aaa135d2898 SHA256 342f431307f37991dd2411ada3496d3104602ed6660f9ad98e431999b0772cad
-EBUILD libtrain-0.9b.ebuild 650 RMD160 a00ab999c939ec2736f97c6234d7f53675030a6a SHA1 b7f5c2e9201539fdf6da2254b4e3ec1856321c72 SHA256 86145b3bbe537e8644bc04441d1cbadd75728634bd070a72bfbc895379a2ec25
-MISC ChangeLog 1361 RMD160 e4a94969123a4da4933a7336ec1ebfa43d7d3959 SHA1 a55e34e760808481c0d87c6c87b7c32012672cc3 SHA256 17f33b8998eb4408a77c68b8bba4c132e60a724827dc279b67d025b36bd59ea4
-MISC metadata.xml 210 RMD160 c9fe92a44d079ef04bcdd31de9867de5bb9f26e5 SHA1 efa00493ddec7289a21bc4cbcc6e95ec4de749d5 SHA256 90082fe26a119a63ca8fbe227f66c33ba74167b6cf28e2cef02dea6c4f656c39
+EBUILD libtrain-0.9b.ebuild 690 RMD160 d7ea5dda1b73d3446df57b4cb3968e06a1511656 SHA1 1845d483cae1e5791a4633315518aa191866c70d SHA256 ecddbfb156d8d4580951cf9185e369326488f2501930754c16ee800412b9d758
+MISC ChangeLog 1588 RMD160 a3a4abbcfa97c2320dbcf8388d513adafcd70e2b SHA1 a7159aa0ddea3d8262a62eb823d71c289028c233 SHA256 a129ce7d4c5d2aa7d0a0078e3aa0113c4369f629a972ccc3520bfc677bdbaa94
+MISC metadata.xml 214 RMD160 ea476e10a778f79d9273adbbc2403db67d025e10 SHA1 7f156558998e184ab8ea7417fd4739048f012a09 SHA256 0e019c1dee563e5b23815be471ae1b65fcaf721a91ec48037446d41ca787d3e5
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
+Version: GnuPG v2.0.19 (GNU/Linux)
+Comment: GPGTools - http://gpgtools.org
-iJwEAQEIAAYFAk59C7gACgkQfXuS5UK5QB3r8AP5AT2OJdWKzlOgDw58MtOE6syQ
-VEtG+hBuFbKYKErta2W3ZORiX26QHjyJ7mBgbueUN0oHL3GPaOtm3tNZlRQuJidm
-RVIuOul/KQa2/WZUbLZyEe5Je2OjbbNlkQ63qI2KLapeADv5MWw/QUxmNEoU3daU
-LhD0NaZbwC5+tOGOlFw=
-=eAYd
+iEYEAREKAAYFAk/wIowACgkQgAnW8HDreRawMgCfSxHXKbuVrkXc5VfCCpPGC+ct
+tvoAoJnY6XQymnsI/ZfUqhmIUPM3MLNs
+=HrDR
-----END PGP SIGNATURE-----
diff --git a/dev-libs/libtrain/files/libtrain-0.9b-impl-dec.patch b/dev-libs/libtrain/files/libtrain-0.9b-impl-dec.patch
new file mode 100644
index 000000000000..7cc2339cf8ef
--- /dev/null
+++ b/dev-libs/libtrain/files/libtrain-0.9b-impl-dec.patch
@@ -0,0 +1,29 @@
+ libtrain/lcommon.c | 1 +
+ libtrain/roma.c | 2 ++
+ 2 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/libtrain/lcommon.c b/libtrain/lcommon.c
+index 8519c86..01a775e 100644
+--- a/libtrain/lcommon.c
++++ b/libtrain/lcommon.c
+@@ -2,6 +2,7 @@
+ /* this file is modified by FURUKAWA Yo (you@ss.iij4u.or.jp) */
+
+ #include "lfunc.h"
++#include <string.h>
+
+ BYTE Tmpbuf[ 256 ] ;
+ char FileBuf[ 1024 ] ;
+diff --git a/libtrain/roma.c b/libtrain/roma.c
+index e61a428..41b969c 100644
+--- a/libtrain/roma.c
++++ b/libtrain/roma.c
+@@ -13,6 +13,8 @@
+ #include <string.h>
+ #endif /* MAIN */
+
++#include <string.h>
++
+ #define Strlen(s) strlen((s))
+ #define Strcpy(d,s) strcpy((d),(s))
+ #define iskanji(x) (((x)>=0x81 && (x)<=0x9F)||((x)>=0xE0 && (x)<=0xFC))
diff --git a/dev-libs/libtrain/libtrain-0.9b.ebuild b/dev-libs/libtrain/libtrain-0.9b.ebuild
index 5c85752211b2..0bb006eaa845 100644
--- a/dev-libs/libtrain/libtrain-0.9b.ebuild
+++ b/dev-libs/libtrain/libtrain-0.9b.ebuild
@@ -1,8 +1,12 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtrain/libtrain-0.9b.ebuild,v 1.13 2009/09/23 17:24:33 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtrain/libtrain-0.9b.ebuild,v 1.14 2012/07/01 10:12:22 jlec Exp $
-inherit toolchain-funcs
+EAPI=4
+
+AUTOTOOLS_AUTORECONF=yes
+
+inherit autotools-utils
DESCRIPTION="Library for calculating fastest train routes"
SRC_URI="http://www.on.rim.or.jp/~katamuki/software/train/${P}.tar.gz"
@@ -11,16 +15,11 @@ HOMEPAGE="http://www.on.rim.or.jp/~katamuki/software/train/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~ppc sparc x86"
-IUSE=""
+IUSE="debug static-libs "
-DEPEND=""
-RDEPEND="${DEPEND}"
-
-src_compile() {
- econf || die
- emake CC="$(tc-getCC)" || die
-}
+PATCHES=( "${FILESDIR}"/${P}-impl-dec.patch )
-src_install () {
- make DESTDIR="${D}" install || die
+src_configure() {
+ local myeconfargs=( $(use_enable debug) )
+ autotools-utils_src_configure
}
diff --git a/dev-libs/libtrain/metadata.xml b/dev-libs/libtrain/metadata.xml
index d9cd2cad66c2..91f4e72fb544 100644
--- a/dev-libs/libtrain/metadata.xml
+++ b/dev-libs/libtrain/metadata.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer>
-<email>maintainer-needed@gentoo.org</email>
-</maintainer>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
</pkgmetadata>