diff options
author | Stephanie J. Lockwood-Childs <wormo@gentoo.org> | 2008-12-26 08:07:25 +0000 |
---|---|---|
committer | Stephanie J. Lockwood-Childs <wormo@gentoo.org> | 2008-12-26 08:07:25 +0000 |
commit | c041de9ac4d0c90a73e84c47ea96c21ae36bd782 (patch) | |
tree | 27e9bc6e704d7c59d8d458b4297f1d8027a5e3a4 /dev-util | |
parent | package.masked dev-util/biew on amd64 no-multilib profiles (diff) | |
download | gentoo-2-c041de9ac4d0c90a73e84c47ea96c21ae36bd782.tar.gz gentoo-2-c041de9ac4d0c90a73e84c47ea96c21ae36bd782.tar.bz2 gentoo-2-c041de9ac4d0c90a73e84c47ea96c21ae36bd782.zip |
Version bump with the help of Andrej Gelenberg (bug #251905)
(Portage version: 2.1.4.5)
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/biew/ChangeLog | 9 | ||||
-rw-r--r-- | dev-util/biew/biew-5.7.0.ebuild | 59 | ||||
-rw-r--r-- | dev-util/biew/files/biew-570-configure-gpm.patch | 16 | ||||
-rw-r--r-- | dev-util/biew/files/biew-570-makefile.patch | 29 |
4 files changed, 112 insertions, 1 deletions
diff --git a/dev-util/biew/ChangeLog b/dev-util/biew/ChangeLog index 0f6885632bff..bde739ae9c49 100644 --- a/dev-util/biew/ChangeLog +++ b/dev-util/biew/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-util/biew # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/biew/ChangeLog,v 1.23 2008/10/05 12:00:47 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/biew/ChangeLog,v 1.24 2008/12/26 08:07:23 wormo Exp $ + +*biew-5.7.0 (26 Dec 2008) + + 26 Dec 2008; Stephanie Lockwood-Childs <wormo@gentoo.org> + +files/biew-570-configure-gpm.patch, +files/biew-570-makefile.patch, + +biew-5.7.0.ebuild: + Version bump with the help of Andrej Gelenberg (bug #251905) 05 Oct 2008; Michał Januszewski <spock@gentoo.org> metadata.xml: Remove myself from the maintainer list. diff --git a/dev-util/biew/biew-5.7.0.ebuild b/dev-util/biew/biew-5.7.0.ebuild new file mode 100644 index 000000000000..a864013a6abc --- /dev/null +++ b/dev-util/biew/biew-5.7.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/biew/biew-5.7.0.ebuild,v 1.1 2008/12/26 08:07:23 wormo Exp $ + +inherit eutils + +DESCRIPTION="A portable viewer of binary files, hexadecimal and disassembler modes." +HOMEPAGE="http://biew.sourceforge.net" +SRC_URI="mirror://sourceforge/biew/${PN}-${PV//./}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gpm" + +DEPEND="gpm? ( sys-libs/gpm )" + +RDEPEND="gpm? ( + x86? ( sys-libs/gpm ) + amd64? ( app-emulation/emul-linux-x86-baselibs ) + )" +# biew build only compiles 32-bit binary on amd64, and 32-bit libgpm is in +# app-emulation/emul-linux-x86-baselibs + +S=${WORKDIR}/${PN}-${PV//./} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/biew-570-configure-gpm.patch + epatch "${FILESDIR}"/biew-570-makefile.patch +} + +src_compile() { + local enable_gpm + + if use gpm ; then + enable_gpm=yes + else + enable_gpm=no + fi + export _gpm=${enable_gpm} + + econf + emake + for i in doc/*.ru doc/file_id.diz doc/biew_ru.txt doc/biew_en.txt + do + if iconv -f cp866 -t utf-8 "$i" > "$i.conv" + then + mv "$i.conv" "$i" + fi + done +} + +src_install() { + make install DESTDIR="${D}" + doman doc/biew.1 + dodoc doc/*.txt doc/*.en doc/*.ru doc/file_id.diz +} diff --git a/dev-util/biew/files/biew-570-configure-gpm.patch b/dev-util/biew/files/biew-570-configure-gpm.patch new file mode 100644 index 000000000000..61497f80ca89 --- /dev/null +++ b/dev-util/biew/files/biew-570-configure-gpm.patch @@ -0,0 +1,16 @@ +--- configure.old 2008-12-24 13:26:59.000000000 -0800 ++++ configure 2008-12-24 13:34:00.000000000 -0800 +@@ -478,8 +478,11 @@ + #include <gpm.h> + int main(void) {return 0;} + EOF +- _gpm=no +- cc_check -lgpm && _gpm=yes ++ # _gpm may be forced from command line ++ if test -z "$_gpm" ; then ++ _gpm=no ++ cc_check -lgpm && _gpm=yes ++ fi + if test "$_gpm" = yes ; then + _cdefos="-DHAVE_MOUSE $_cdefos" + _oslibs="-lgpm $_oslibs" diff --git a/dev-util/biew/files/biew-570-makefile.patch b/dev-util/biew/files/biew-570-makefile.patch new file mode 100644 index 000000000000..eda929ba33d1 --- /dev/null +++ b/dev-util/biew/files/biew-570-makefile.patch @@ -0,0 +1,29 @@ +--- makefile.orig 2008-12-21 12:33:37.001959467 +0100 ++++ makefile 2008-12-21 12:38:56.925669582 +0100 +@@ -271,16 +271,16 @@ + @echo "*** of this project" + @exit 1 + endif +- $(INSTALL) -D -m 755 $(TARGET) $(PREFIX)/bin/$(TARGET) +- $(INSTALL) -D -c -m 644 doc/biew.1 $(PREFIX)/man/man1/biew.1 +- $(INSTALL) -D -c -m 644 bin_rc/biew.hlp $(DATADIR)/biew.hlp +- mkdir --parents $(DATADIR)/skn +- $(INSTALL) -D -c -m 644 bin_rc/skn/*.skn $(DATADIR)/skn +- mkdir --parents $(DATADIR)/syntax +- $(INSTALL) -D -c -m 644 bin_rc/syntax/*.stx $(DATADIR)/syntax +- mkdir --parents $(DATADIR)/xlt/russian +- $(INSTALL) -D -c -m 644 bin_rc/xlt/russian/*.xlt $(DATADIR)/xlt/russian +- $(INSTALL) -D -c -m 644 bin_rc/xlt/*.xlt bin_rc/xlt/readme $(DATADIR)/xlt ++ $(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) ++ $(INSTALL) -D -c -m 644 doc/biew.1 $(DESTDIR)$(PREFIX)/man/man1/biew.1 ++ $(INSTALL) -D -c -m 644 bin_rc/biew.hlp $(DESTDIR)$(DATADIR)/biew.hlp ++ mkdir --parents $(DESTDIR)$(DATADIR)/skn ++ $(INSTALL) -D -c -m 644 bin_rc/skn/*.skn $(DESTDIR)$(DATADIR)/skn ++ mkdir --parents $(DESTDIR)$(DATADIR)/syntax ++ $(INSTALL) -D -c -m 644 bin_rc/syntax/*.stx $(DESTDIR)$(DATADIR)/syntax ++ mkdir --parents $(DESTDIR)$(DATADIR)/xlt/russian ++ $(INSTALL) -D -c -m 644 bin_rc/xlt/russian/*.xlt $(DESTDIR)$(DATADIR)/xlt/russian ++ $(INSTALL) -D -c -m 644 bin_rc/xlt/*.xlt bin_rc/xlt/readme $(DESTDIR)$(DATADIR)/xlt + uninstall: + $(RM) $(PREFIX)/bin/$(TARGET) + $(RM) $(DATADIR)/skn/* |