diff options
-rw-r--r-- | net-news/snownews/ChangeLog | 8 | ||||
-rw-r--r-- | net-news/snownews/files/digest-snownews-1.5.7-r2 | 3 | ||||
-rw-r--r-- | net-news/snownews/files/snownews-1.5.7-manpath.patch | 36 | ||||
-rw-r--r-- | net-news/snownews/snownews-1.5.7-r2.ebuild | 58 |
4 files changed, 104 insertions, 1 deletions
diff --git a/net-news/snownews/ChangeLog b/net-news/snownews/ChangeLog index 6bebc7aabf89..67a76befd96e 100644 --- a/net-news/snownews/ChangeLog +++ b/net-news/snownews/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-news/snownews # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-news/snownews/ChangeLog,v 1.10 2007/01/22 17:28:38 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-news/snownews/ChangeLog,v 1.11 2007/01/23 22:57:57 cedk Exp $ + +*snownews-1.5.7-r2 (23 Jan 2007) + + 23 Jan 2007; Cedric Krier <cedk@gentoo.org> + +files/snownews-1.5.7-manpath.patch, +snownews-1.5.7-r2.ebuild: + Add patch for bug #163439 22 Jan 2007; Gustavo Zacarias <gustavoz@gentoo.org> snownews-1.5.7-r1.ebuild: diff --git a/net-news/snownews/files/digest-snownews-1.5.7-r2 b/net-news/snownews/files/digest-snownews-1.5.7-r2 new file mode 100644 index 000000000000..f72c0b1bb94b --- /dev/null +++ b/net-news/snownews/files/digest-snownews-1.5.7-r2 @@ -0,0 +1,3 @@ +MD5 75ffa004e755a233f49b1cdfcd9e3d85 snownews-1.5.7.tar.gz 161504 +RMD160 5aa839bb92a8ee51b2b1fda74ddf22279665061b snownews-1.5.7.tar.gz 161504 +SHA256 1afab69e03f351e670187ba35cea363aa6113a44b8fe243ca98835b89e672653 snownews-1.5.7.tar.gz 161504 diff --git a/net-news/snownews/files/snownews-1.5.7-manpath.patch b/net-news/snownews/files/snownews-1.5.7-manpath.patch new file mode 100644 index 000000000000..b6bd7553c839 --- /dev/null +++ b/net-news/snownews/files/snownews-1.5.7-manpath.patch @@ -0,0 +1,36 @@ +diff -ru snownews-1.5.7~/Makefile snownews-1.5.7/Makefile +--- snownews-1.5.7~/Makefile 2007-01-23 23:49:40.000000000 +0100 ++++ snownews-1.5.7/Makefile 2007-01-23 23:49:53.000000000 +0100 +@@ -2,6 +2,7 @@ + MAKE= make + INSTALL= install + LOCALEPATH= $(PREFIX)/share/locale ++MANPATH= $(PREFIX)/share + + ### Compiler/linker flags ### + ### Generated via configure ### +@@ -75,17 +76,17 @@ + done + + install-man: manpages +- if [ ! -d "$(DESTDIR)$(PREFIX)/man/man1" ]; then \ +- mkdir -p $(DESTDIR)$(PREFIX)/man/man1; \ ++ if [ ! -d "$(DESTDIR)$(MANPATH)/man/man1" ]; then \ ++ mkdir -p $(DESTDIR)$(MANPATH)/man/man1; \ + fi +- $(INSTALL) -m 0644 $(MAN)/snownews.1 $(DESTDIR)$(PREFIX)/man/man1 +- $(INSTALL) -m 0644 $(MAN)/opml2snow.1 $(DESTDIR)$(PREFIX)/man/man1 ++ $(INSTALL) -m 0644 $(MAN)/snownews.1 $(DESTDIR)$(MANPATH)/man/man1 ++ $(INSTALL) -m 0644 $(MAN)/opml2snow.1 $(DESTDIR)$(MANPATH)/man/man1 + + for L in $(LANGS); do \ +- if [ ! -d "$(DESTDIR)$(PREFIX)/man/$$L/man1" ]; then \ +- mkdir -p $(DESTDIR)$(PREFIX)/man/$$L/man1; \ ++ if [ ! -d "$(DESTDIR)$(MANPATH)/man/$$L/man1" ]; then \ ++ mkdir -p $(DESTDIR)$(MANPATH)/man/$$L/man1; \ + fi; \ +- $(INSTALL) -m 0644 $(MAN)/$$L/snownews.1 $(DESTDIR)$(PREFIX)/man/$$L/man1; \ ++ $(INSTALL) -m 0644 $(MAN)/$$L/snownews.1 $(DESTDIR)$(MANPATH)/man/$$L/man1; \ + done + + ### Cleanup ### diff --git a/net-news/snownews/snownews-1.5.7-r2.ebuild b/net-news/snownews/snownews-1.5.7-r2.ebuild new file mode 100644 index 000000000000..14b13567e4ba --- /dev/null +++ b/net-news/snownews/snownews-1.5.7-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-news/snownews/snownews-1.5.7-r2.ebuild,v 1.1 2007/01/23 22:57:57 cedk Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Snownews, a text-mode RSS/RDF newsreader" +HOMEPAGE="http://snownews.kcore.de/" +SRC_URI="http://home.kcore.de/~kiza/software/snownews/download/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="unicode" + +DEPEND=">=dev-libs/libxml2-2.5.6 + >=sys-libs/ncurses-5.3" + +RDEPEND="dev-perl/XML-LibXML + dev-perl/XML-LibXSLT + dev-perl/libwww-perl" + +pkg_setup() { + if use unicode && ! built_with_use sys-libs/ncurses unicode; then + eerror "sys-libs/ncurses must be build with unicode" + die "${PN} requires sys-libs/ncurses with USE=unicode" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i -e "s/-O2//" \ + configure + + sed -i -e 's/$(INSTALL) -s/$(INSTALL)/' \ + Makefile + + #Bug #121805 + epatch "${FILESDIR}"/${P}-stdint.patch + + #Bug #163439 + epatch "${FILESDIR}"/${P}-manpath.patch +} + +src_compile() { + local conf="--prefix=/usr" + use unicode && conf="${conf} --charset=UTF-8" + ./configure ${conf} || die "configure failed" + emake CC="$(tc-getCC)" EXTRA_CFLAGS="${CFLAGS}" EXTRA_LDFLAGS="${LDFLAGS}" || die "emake failed" +} + +src_install() { + emake PREFIX="${D}/usr" install || die "make install failed" + + dodoc AUTHOR CREDITS README README.colors README.de README.patching +} |