diff options
author | 2009-07-12 09:56:10 +0000 | |
---|---|---|
committer | 2009-07-12 09:56:10 +0000 | |
commit | 26daa882443e624b814879d25b2cbb3813692e7a (patch) | |
tree | ec644312663bf5ee77793735971f877bf1967327 /app-mobilephone/yaps | |
parent | sparc stable wrt #271889 (diff) | |
download | historical-26daa882443e624b814879d25b2cbb3813692e7a.tar.gz historical-26daa882443e624b814879d25b2cbb3813692e7a.tar.bz2 historical-26daa882443e624b814879d25b2cbb3813692e7a.zip |
Migrate to EAPI 2. Fix compile errors when built against glibc-2.10 (#276191).
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'app-mobilephone/yaps')
-rw-r--r-- | app-mobilephone/yaps/ChangeLog | 10 | ||||
-rw-r--r-- | app-mobilephone/yaps/Manifest | 14 | ||||
-rw-r--r-- | app-mobilephone/yaps/files/yaps-0.96-getline-rename.patch | 69 | ||||
-rw-r--r-- | app-mobilephone/yaps/yaps-0.96-r4.ebuild | 86 |
4 files changed, 176 insertions, 3 deletions
diff --git a/app-mobilephone/yaps/ChangeLog b/app-mobilephone/yaps/ChangeLog index fe929e9576d6..d91862ddffa3 100644 --- a/app-mobilephone/yaps/ChangeLog +++ b/app-mobilephone/yaps/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-mobilephone/yaps -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/yaps/ChangeLog,v 1.21 2008/10/27 01:58:52 sbriesen Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/yaps/ChangeLog,v 1.22 2009/07/12 09:56:10 mrness Exp $ + +*yaps-0.96-r4 (12 Jul 2009) + + 12 Jul 2009; Alin Năstac <mrness@gentoo.org> + +files/yaps-0.96-getline-rename.patch, +yaps-0.96-r4.ebuild: + Migrate to EAPI 2. Fix compile errors when built against glibc-2.10 (#276191). *yaps-0.96-r3 (27 Oct 2008) diff --git a/app-mobilephone/yaps/Manifest b/app-mobilephone/yaps/Manifest index 102a2f60b1ea..f190dc707ce1 100644 --- a/app-mobilephone/yaps/Manifest +++ b/app-mobilephone/yaps/Manifest @@ -1,9 +1,21 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX yaps-0.96-gentoo.diff 1554 RMD160 8957fedb29b5b436d865da887731874f2ff8ec8f SHA1 ed3aadceb9a0f0254017c2b7e878475e6f15c1f5 SHA256 3ba28d9b6f527ed9fec12bb8ea35e46f33adb80bd8d5ca5bd81405bedea0574c AUX yaps-0.96-gentoo.patch 10303 RMD160 ce80bbc2bd246517f098ecae414a1c0d76972eab SHA1 0fd62ff7b04447269a84aaf9abc79bb9951d844c SHA256 49f90677f9b52fa2ac0335825da866c45e62c2098a1c527061e08af4c7ebbb05 +AUX yaps-0.96-getline-rename.patch 2349 RMD160 980b5b48d381767810f94f464a0a324dd83d4ab3 SHA1 1c2cb07b0c4a3ebea7042b58f40261f1079efe54 SHA256 ceb16d4f5c707a856fb88da1100640933e5d37a015430b2753543538bf25b47f DIST yaps-0.96.c3.tgz 108723 RMD160 957d4c10db43405452f231aa84c67fb9617432e2 SHA1 0d1d4f85a6b2fd021baae2f4fbf163204497eb75 SHA256 6f2a43a42004295ac855d12061f319be6fb8c3c82dc78d0ece8f6664376f59aa DIST yaps-0.96.c4.tgz 109682 RMD160 9747a98fbf7bff4ad9f978743dc1f63137fbee26 SHA1 a87dc354f525b0a9a731ab6078ea4af950a36cfd SHA256 4afab43b8f0bed7c48d91cef56bc7aee44a1887c38efb8788be3ec761caf54c9 DIST yaps-0.96.tar.gz 91060 RMD160 38b08bf3fab015ab21bfc589277495e0eade275f SHA1 9fdd06337d63ef7b4b17d2c48c26e010f1355f8d SHA256 6474a507d1f3d769c80562164ad38454c73fb49be043bab1128ca9eaf20c5b98 EBUILD yaps-0.96-r2.ebuild 1668 RMD160 81e3d628eb63fdb4118fc90bdfde2f8fcc8e2a6c SHA1 bf57dd23ac10cb636f3f9591e86256c29c4f3e9a SHA256 1adb82602e9aca8b4f33a09686c9a248195c5c22a4a9c0b0b41b7d687d3cd062 EBUILD yaps-0.96-r3.ebuild 2349 RMD160 97eb43f340d5ce6ba42f03e73932e1eeb245e7d8 SHA1 56bc7cd8358bd9b28d4498a7557814cb864652ba SHA256 2bb82fd95ca6836ace2c493332b09b03ba27f6d0bbe78f96d4b8423a73cdb829 -MISC ChangeLog 3030 RMD160 a452ead99ad53119854ad78df0b9c8b681c20b82 SHA1 ff18c30119988f38dcdaa8b39f2fc183d176e376 SHA256 65e225c92a7c4933f507bc66e3d8cc1db37503d3ce974028f100907b81f20d01 +EBUILD yaps-0.96-r4.ebuild 2393 RMD160 ee96d0b9c3cbb5669aebdd970502d4acbddd23a5 SHA1 4231b61d145658739d6fb9ec64afef0302f5287f SHA256 0c7bcac07ba05dca9fa739a2b8fe52d3360818573a950ab1e46aa3158b78b5fe +MISC ChangeLog 3250 RMD160 e250d8870edaaf954dcbadcac4a389e28c8a7497 SHA1 af3e8ae8def17324c02171d7ed0059046f9beadc SHA256 665fa6f6d96bb89cf66d322c0dd817596df2734bae1fdce8232dade12b6c7e49 MISC metadata.xml 428 RMD160 4733f0837c3189a45d818587c0298b8d80d83e5c SHA1 214d19b2e49e55b6fd569f6900cabc4f3245e0e7 SHA256 376b9b1390694cc5ab61c14a2ae350afdcb06772bbc488f362d7a9656372d90f +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkpZs0QACgkQ9A5kJBGSrss6PwCeNkTbbGswbMy2DooQuqQ2hFOw +4g4AnRBGTH3Yz6BXb0XOOubJzLfeoRUw +=k1Va +-----END PGP SIGNATURE----- diff --git a/app-mobilephone/yaps/files/yaps-0.96-getline-rename.patch b/app-mobilephone/yaps/files/yaps-0.96-getline-rename.patch new file mode 100644 index 000000000000..9613abc73ebd --- /dev/null +++ b/app-mobilephone/yaps/files/yaps-0.96-getline-rename.patch @@ -0,0 +1,69 @@ +diff -Nru yaps-0.96.orig/cfg.c yaps-0.96/cfg.c +--- yaps-0.96.orig/cfg.c 1997-06-11 14:05:34.000000000 +0200 ++++ yaps-0.96/cfg.c 2009-07-12 11:32:02.000000000 +0200 +@@ -203,7 +203,7 @@ + fcur -> fp = fp; + fcur -> up = NULL; + while (fcur) { +- while (gline = getline (fcur -> fp, True)) { ++ while (gline = my_getline (fcur -> fp, True)) { + for (line = gline; isspace (*line); ++line) + ; + if ((! *line) || (*line == '#')) { +@@ -279,7 +279,7 @@ + done = False; + siz = 0; + len = 0; +- while (ptr = getline (fcur -> fp, False)) { ++ while (ptr = my_getline (fcur -> fp, False)) { + if ((*ptr != '}') || *(ptr + 1)) { + plen = strlen (ptr); + if (len + plen + 2 >= siz) { +diff -Nru yaps-0.96.orig/cv.c yaps-0.96/cv.c +--- yaps-0.96.orig/cv.c 1997-06-03 20:43:52.000000000 +0200 ++++ yaps-0.96/cv.c 2009-07-12 11:31:44.000000000 +0200 +@@ -151,7 +151,7 @@ + MCHK (c); + if ((! c) || (! (fp = fopen (fname, "r")))) + return -1; +- while (line = getline (fp, True)) { ++ while (line = my_getline (fp, True)) { + for (sp = line; isspace (*sp); ++sp) + ; + if (*sp && (*sp != '#')) { +diff -Nru yaps-0.96.orig/pager.h yaps-0.96/pager.h +--- yaps-0.96.orig/pager.h 1997-06-12 13:59:28.000000000 +0200 ++++ yaps-0.96/pager.h 2009-07-12 11:31:33.000000000 +0200 +@@ -67,7 +67,7 @@ + /*{{{ utility */ + extern char *skip (char *str); + extern char *skipch (char *str, char ch); +-extern char *getline (FILE *fp, Bool cont); ++extern char *my_getline (FILE *fp, Bool cont); + extern int verbose_out (char *, ...); + /*}}}*/ + /*{{{ string handling */ +diff -Nru yaps-0.96.orig/util.c yaps-0.96/util.c +--- yaps-0.96.orig/util.c 1997-05-31 19:20:40.000000000 +0200 ++++ yaps-0.96/util.c 2009-07-12 11:31:49.000000000 +0200 +@@ -36,7 +36,7 @@ + } + + char * +-getline (FILE *fp, Bool cont) ++my_getline (FILE *fp, Bool cont) + { + char *buf; + int size; +diff -Nru yaps-0.96.orig/yaps.c yaps-0.96/yaps.c +--- yaps-0.96.orig/yaps.c 1997-06-14 12:25:56.000000000 +0200 ++++ yaps-0.96/yaps.c 2009-07-12 11:31:39.000000000 +0200 +@@ -1177,7 +1177,7 @@ + fprintf (stderr, "Unable to open message file %s for reading\n", mfile); + return NULL; + } +- while (ptr = getline (fp, False)) { ++ while (ptr = my_getline (fp, False)) { + sav = skip (ptr); + if (*ptr && *sav) { + if (rcnt + 2 >= rsiz) { diff --git a/app-mobilephone/yaps/yaps-0.96-r4.ebuild b/app-mobilephone/yaps/yaps-0.96-r4.ebuild new file mode 100644 index 000000000000..e4c366c282d3 --- /dev/null +++ b/app-mobilephone/yaps/yaps-0.96-r4.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/yaps/yaps-0.96-r4.ebuild,v 1.1 2009/07/12 09:56:10 mrness Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Yet Another Pager Software (optional with CAPI support)" +HOMEPAGE="ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/machines/" +SRC_URI="capi? ( ftp://ftp.melware.net/capi4yaps/${P}.c4.tgz ) + !capi? ( ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/machines/${P}.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="capi lua slang unicode" + +RDEPEND="capi? ( net-dialup/capi4k-utils ) + slang? ( >=sys-libs/slang-1.4 ) + lua? ( dev-lang/lua )" +DEPEND="${RDEPEND} + !capi? ( sys-apps/sed ) + lua? ( dev-util/pkgconfig )" + +pkg_setup() { + if ! use capi; then + ewarn + ewarn "You are now compiling some *very* old and unmaintained stuff!" + ewarn + ewarn "YAPS with CAPI 2.0 support is actively maintained, but needs" + ewarn "net-dialup/capi4k-utils installed. But I advice you to use" + ewarn "this version, since it can still be used with an ordinary" + ewarn "modem (that's what you probably wanted). So just add 'capi'" + ewarn "to your USE flags to get the new and maintained version." + ewarn + ebeep + fi +} + +src_prepare() { + use capi && mv -f "${S}.c4" "${S}" + cd "${S}" + + # apply patches + epatch "${FILESDIR}/${P}-gentoo.diff" + epatch "${FILESDIR}/${P}-getline-rename.patch" + + # fix compile warning + use capi || \ + sed -i -e 's:^\(.*\)\(<stdlib.h>\):\1\2\n\1<string.h>:g' scr.c + + # if specified, convert all relevant files from latin1 to UTF-8 + if use unicode; then + for i in yaps.doc; do + einfo "Converting '${i}' to UTF-8" + iconv -f latin1 -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~" + done + fi +} + +src_compile() { + local myconf="" + use lua && myconf="${myconf} LUA=True" + use slang && myconf="${myconf} SLANG=True" + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" ${myconf} || die "emake failed" +} + +src_install() { + dobin yaps + insinto /etc + doins yaps.rc + keepdir /usr/lib/yaps + doman yaps.1 + dohtml yaps.html + dodoc BUGREPORT COPYRIGHT README yaps.lsm yaps.doc + newdoc contrib/README README.contrib + insinto /usr/share/doc/${PF}/contrib + doins contrib/{m2y.pl,tap.sl} +} + +pkg_postinst() { + elog + elog "Please edit /etc/yaps.rc to suit your needs." + elog +} |