summaryrefslogtreecommitdiff
path: root/dev-util/biew
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/biew
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/biew')
-rw-r--r--dev-util/biew/Manifest8
-rw-r--r--dev-util/biew/biew-6.1.0-r3.ebuild65
-rw-r--r--dev-util/biew/files/biew-610-crash.patch28
-rw-r--r--dev-util/biew/files/biew-610-fix_localedep-1.patch26
-rw-r--r--dev-util/biew/files/biew-610-portable_configure-1.patch167
-rw-r--r--dev-util/biew/metadata.xml11
6 files changed, 305 insertions, 0 deletions
diff --git a/dev-util/biew/Manifest b/dev-util/biew/Manifest
new file mode 100644
index 000000000000..867f41df180b
--- /dev/null
+++ b/dev-util/biew/Manifest
@@ -0,0 +1,8 @@
+AUX biew-610-crash.patch 1254 SHA256 efa6a17d7d03a3a0bc15dab21df308c825b42de193a7f1bc89675786d69c65d9 SHA512 ec71e70aacd171125100e2482fd888002d47f95cbeb909ba78acc1c2383a70bad5b8f8fb7acb709989e1466722e974b5a4689394fcdad96903354bd32306746e WHIRLPOOL 9bff8e23131aacce8f77c0602a6646bf189bc55772ba06f0b43dc06c18c3f2bba9ee426b1cc5d671e32c74c0902e4f1e53291b3dce9716c9531c2cf9fc38892f
+AUX biew-610-fix_localedep-1.patch 1003 SHA256 094fd29bcfa683ae4fa449bf53d17fe53d9239806f1831e70bbecd75ec7996b3 SHA512 d141df509fda58d2044fc8488bb73eca8b908fa33dd0449724475d8e6109e186d67245506c4af3100d24378d51866367da1b09bffbb664e91ff79f6bde7e68eb WHIRLPOOL 625ede99b6470500fa5a0cc66978ceb5ed2629d466acf30ba07d4f2a082300ec6cdbcd6f0e0c0d9ab30b1f17f9b3824ae491241d01e35582de69ea820f8721ad
+AUX biew-610-portable_configure-1.patch 4932 SHA256 b306d264e94ae47ce843668aea5f59470cdbad81250a7de32858e02dc3cfc0e2 SHA512 cce6564e9d65b6f8c6c4a8dba1919dcfffbc22641ddfcb4fdf1bcab45d56b437dedbee328c86426c1b821b57b923e3d8cc97fdcf140662deb794f64e29c6847c WHIRLPOOL 467a9047259ff0d69492f48cc221efaed153da6b6d60f6a5e57476a4a47a9615d9565d15acf79154df38e365a86d5c5a081b07528cd4603cd5769e24d961f7d1
+DIST biew-610-src.tar.bz2 860517 SHA256 2e85f03c908dd6ec832461fbfbc79169a33f4caccf48c8fe60cbd29f5fb06d17 SHA512 df8d3c10c30e30db1bc5fdba73601a148f7a1480e69a3d03a02ec303534f37db9c5a9eb7ac087d8f1d8cc64d4a0f6e11548c5b385e132e3a981a6f328e3b5742 WHIRLPOOL df1227579b21155cc651c273802cd4b57cdbde12d4faa7532661e568f9b8b3de8db6c81d9283bef7ad705f6bdf4ff13a811ccf41ba23243947c6cb3c6d99e7ba
+EBUILD biew-6.1.0-r3.ebuild 1737 SHA256 4f6d4f578c7aedcb418e859014a09c9aed69b4a11e5de62a9e13342b98279785 SHA512 17c0f8d50d00c1eb9a90ca1527737cf4728401c94845baba5c71cde5f1f095e4cadf2088ed2b939f6e3b4540718246e4c1ca3f2eac50f421cbf5b29e02c604f5 WHIRLPOOL 279cab6c3cd1e08be2b02c0e7047fc5e4396731506474081d3294835394b56603d64d9fe5802d6573ba17730a936044662f12415b4280fccc0596a5d8f79d8f3
+MISC ChangeLog 2287 SHA256 e5adc45e4cf9f7b7be00197666437e3d5127a1d2720c95c4911c1cfa629265b7 SHA512 235a01842a232432087ec19ce1ddbbc37b7fe576f46fe50a4e6f4901275e704f60ff1d9aae1920e92889ee02fb944820481d856e862100ede40e8a60f80a47d3 WHIRLPOOL 8fa731c90eecbc66c35c9272c5c81b085db30af8d5ef2155955effcabb743ac36f3008e2e3869d768afe5862939867de92e463a697d271033c90a2db0b97a5a9
+MISC ChangeLog-2015 6094 SHA256 0f2d1662ebb0c1ac693b432c6e8e4acf84f232ac7cd8a8ae727696cd8f547b9e SHA512 00e7d7d952c78735d109ca6d1e0e9cbd7e33bf703e49162342d655f7578f0a734f6e883c5d54c0a276901588fc000b8f4d42c2fbb0ba63782337d0d949ecb7bb WHIRLPOOL 7792d44fb5d439d5b4c0388617cf64a376ddf18d2e573a6a6d9ff16d4a7e9f403e7cde344ae254a94eb193f8b83a119e979a9eda4c1d0e7c8317563ae2a74718
+MISC metadata.xml 327 SHA256 a6d0251edd9266eccffb3410347f291480c6114c7537617f77b3bc7aa9fc45ab SHA512 0e157ba1f9c8d78c203108d72e2871cda917a404223cd7d8b8ff261f72ec69be630a59e6e205112a0798d7daee06bfd60a3feaa950b327041187ae25701a24f2 WHIRLPOOL 01eb2696af5e789ebec97b349d9654da65c0461af98eb11d75c20a2839236186616a004977866cbead5ef11535321a6928c5c09ba6d7681e09bc6152d353d328
diff --git a/dev-util/biew/biew-6.1.0-r3.ebuild b/dev-util/biew/biew-6.1.0-r3.ebuild
new file mode 100644
index 000000000000..d35ab26a9595
--- /dev/null
+++ b/dev-util/biew/biew-6.1.0-r3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils flag-o-matic toolchain-funcs versionator
+
+MY_P=${PN}-$(replace_all_version_separators "")
+
+DESCRIPTION="A portable viewer of binary files, hexadecimal and disassembler modes"
+HOMEPAGE="http://beye.sourceforge.net/"
+SRC_URI="mirror://sourceforge/beye/${PV}/${MY_P}-src.tar.bz2"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gpm cpu_flags_x86_mmx cpu_flags_x86_sse"
+REQUIRED_USE="cpu_flags_x86_mmx cpu_flags_x86_sse"
+
+RDEPEND="gpm? ( sys-libs/gpm )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ append-flags -mmmx -msse #362043
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-610-fix_localedep-1.patch"
+ epatch "${FILESDIR}/${PN}-610-portable_configure-1.patch"
+ epatch "${FILESDIR}/${PN}-610-crash.patch"
+ sed -i -e 's^man/man1/biew.1^share/man/man1/biew.1^' makefile || die "Failed to edit makefile."
+}
+
+src_configure() {
+ if use gpm; then
+ append-cppflags -DHAVE_MOUSE
+ else
+ append-cppflags -UHAVE_MOUSE
+ fi
+ ./configure --datadir=/usr/share/${PN} \
+ --prefix=/usr \
+ --cc="$(tc-getCC)" \
+ --ld="$(tc-getCC)" \
+ --ar="$(tc-getAR) -rcu" \
+ --as="$(tc-getAS)" \
+ --ranlib="$(tc-getRANLIB)" || die "configure failed."
+}
+
+src_compile() {
+ emake LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc doc/{biew_en,release,unix}.txt
+}
+
+pkg_postinst() {
+ elog
+ elog "Note: if you are upgrading from <=dev-util/biew-6.1.0 you will need"
+ elog "to change the paths in the setup dialog (F9) from /usr/share/ to"
+ elog "/usr/share/biew/ Alternatively, you can delete ~/.biewrc and it will"
+ elog "automatically determine the correct locations on the next run."
+ elog
+}
diff --git a/dev-util/biew/files/biew-610-crash.patch b/dev-util/biew/files/biew-610-crash.patch
new file mode 100644
index 000000000000..244f94a7ad53
--- /dev/null
+++ b/dev-util/biew/files/biew-610-crash.patch
@@ -0,0 +1,28 @@
+If .biewrc does not exist, the setup dialog appears at program start. If you try
+to click a checkbox with the mouse, biew tries to dereference a null pointer
+(because the MainWindow is not yet set).
+
+This patch adds a workaround. Note that you actually cannot click a checkbox.
+But that is what users might expect. (Maybe the biew code should be changed to
+handle this properly.) Well, it is better not to crash, even if the checkboxes
+are not clickable.
+
+ –nico
+
+
+diff -Naur biew-610.orig/events.c biew-610/events.c
+--- biew-610.orig/events.c 2009-09-03 16:57:40.000000000 +0000
++++ biew-610/events.c 2011-09-06 09:41:01.000000000 +0000
+@@ -118,7 +118,11 @@
+ }
+ else
+ {
+- X1 = 0; X2 = twGetClientWidth(MainWnd); Y1 = 1; Y2 = twGetClientHeight(MainWnd) - 1;
++ TWindow *wnd =
++ MainWnd ? MainWnd : /*XXX:drop this line?*/
++ twGetWinAtPos(mx, my);
++ if(!wnd) return KE_MOUSE;
++ X1 = 0; X2 = twGetClientWidth(wnd); Y1 = 1; Y2 = twGetClientHeight(wnd) - 1;
+ }
+ wdh = X2 - X1;
+ hght = Y2 - Y1;
diff --git a/dev-util/biew/files/biew-610-fix_localedep-1.patch b/dev-util/biew/files/biew-610-fix_localedep-1.patch
new file mode 100644
index 000000000000..babe994e070a
--- /dev/null
+++ b/dev-util/biew/files/biew-610-fix_localedep-1.patch
@@ -0,0 +1,26 @@
+The configure script of biew-6.1.0 fails with
+ Checking for C compiler name ... gcc-Version
+if using the de_DE.UTF-8 locale and sys-devel/gcc-4.5.2. It may fail with other
+locales and/or compilers, too. The problem occurs due to the fact that the
+string “gcc version” written by gcc for ‘gcc -v’ is translated according to the
+language (German in the case mentioned above).
+
+This patch makes sure that the POSIX locale is used when the biew configure
+script checks for the name of the compiler. This allows the configure script to
+parse the output properly.
+
+ –nico
+
+
+diff -Naur biew-610.orig/configure biew-610/configure
+--- biew-610.orig/configure 2009-11-13 15:52:36.000000000 +0100
++++ biew-610/configure 2011-01-13 11:11:59.000000000 +0100
+@@ -497,7 +497,7 @@
+
+ _cdefos="-DDATADIR='\"$_datadir\"'"
+
+-cc_name=`$_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1`
++cc_name=`LC_ALL=POSIX $_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1`
+ cc_version=`$_cc -dumpversion`
+
+ echocheck "C compiler name"
diff --git a/dev-util/biew/files/biew-610-portable_configure-1.patch b/dev-util/biew/files/biew-610-portable_configure-1.patch
new file mode 100644
index 000000000000..c64f6280ba08
--- /dev/null
+++ b/dev-util/biew/files/biew-610-portable_configure-1.patch
@@ -0,0 +1,167 @@
+Changes the biew-610 configure script to use portable test constructs. See the
+Autoconf manual <URL:https://www.gnu.org/software/autoconf/manual/html_node/
+Limitations-of-Builtins.html#index-g_t_0040command_007btest_007d-1725> for
+explanations.
+
+ –nico
+
+
+diff -Naur biew-610.orig/configure biew-610/configure
+--- biew-610.orig/configure 2009-11-13 14:52:36.000000000 +0000
++++ biew-610/configure 2011-02-24 09:44:10.000000000 +0000
+@@ -171,7 +171,7 @@
+ # 1st: print out help
+
+ for parm in "$@" ; do
+- if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then
++ if test "X$parm" = "X--help" || test "X$parm" = "X-help" || test "X$parm" = "X-h" ; then
+ cat << EOF
+
+ Usage: $0 [OPTIONS]...
+@@ -235,7 +235,7 @@
+ _cp=cp
+ _libext=a
+ _libprefix=lib
+-test "$CC" && _cc="$CC"
++test "X$CC" != X && _cc="$CC"
+ _prefix="/usr/local"
+ _datadir=
+ _libdir=
+@@ -340,11 +340,11 @@
+ ;;
+ esac
+ done
+-test -z "$_datadir" && _datadir=$_prefix"/share/biew"
+-test -z "$_libdir" && _libdir=$_prefix"/lib/biew"
++test "X$_datadir" = X && _datadir=$_prefix"/share/biew"
++test "X$_libdir" = X && _libdir=$_prefix"/lib/biew"
+
+ for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do
+- test "$I" && break
++ test "X$I" != X && break
+ done
+
+ TMPLOG="config.log"
+@@ -357,8 +357,8 @@
+ _tee="tee -a $TMPLOG"
+
+ echocheck "architecture"
+-if test "$_target_arch" = auto ; then
+- if test -z "$host_arch" ; then
++if test "X$_target_arch" = Xauto ; then
++ if test "X$host_arch" = X ; then
+ host_arch=`( uname -p ) 2>&1`
+ log "uname -p :" "$host_arch"
+ case "$host_arch" in
+@@ -416,8 +416,8 @@
+ x86_64 && _bitness=64
+
+ echocheck "target OS"
+-if test "$_target_system" = auto ; then
+- if test -z "$system_name" ; then
++if test "X$_target_system" = Xauto ; then
++ if test "X$system_name" = X ; then
+ # OS name
+ system_name=`uname -s`
+ log "uname -s :" "$system_name"
+@@ -461,8 +461,8 @@
+ fi
+ fi
+
+-if test "$_target_system" = auto ; then
+- if test -z "$system_name" ; then
++if test "X$_target_system" = Xauto ; then
++ if test "X$system_name" = X ; then
+ # OS name
+ system_name=`/bin/sh --version 2>&1 | sed -n 's/^.*\([(]\)./\1/p'`
+ log "/bin/sh --version:" "$system_name"
+@@ -549,7 +549,7 @@
+ ;;
+ esac
+
+-if test -z "$_x11incdir" ; then
++if test "X$_x11incdir" = X ; then
+ echocheck "X11 headers"
+ for I in /usr/include /usr/X11R6/include /usr/X11/include /usr/openwin/include ; do
+ if test -d "$I/X11" ; then
+@@ -559,11 +559,11 @@
+ fi
+ done
+ fi
+-if test -z "$_x11incdir" ; then
++if test "X$_x11incdir" = X ; then
+ echores "x11inc not found"
+ fi
+
+-if test -z "$_x11libdir" ; then
++if test "X$_x11libdir" = X ; then
+ echocheck "X11 libs"
+ for I in /usr/X11R6/lib /usr/X11/lib /usr/lib32 /usr/openwin/lib ; do
+ if test -d "$I" ; then
+@@ -573,24 +573,24 @@
+ fi
+ done
+ fi
+-if test -z "$_x11libdir" ; then
++if test "X$_x11libdir" = X ; then
+ echores "x11lib not found"
+ fi
+
+-test -z "$_debug" && _osldef="-s $_osldef" || _cdefos="-finline-limit-5 $_cdefos"
+-if test "$_profile" -o "$_debug" -o "$_gcov"; then
++test "X$_debug" = X && _osldef="-s $_osldef" || _cdefos="-finline-limit-5 $_cdefos"
++if test "X$_profile" != X || test "X$_debug" != X || test "X$_gcov" != X ; then
+ _cdefos="-W -Wall -O2 -fno-builtin $_debug $_profile $_gcov $_cdefos"
+ _osldef="$_debug $_profile $_osldef"
+-elif test -z "$CFLAGS" ; then
++elif test "X$CFLAGS" = X ; then
+ _cdefos="-DNDEBUG=1 -O2 -ffast-math -fomit-frame-pointer $_cdefos"
+ x86 && _cdefos="-mmmx -msse $_cdefos"
+ else
+ _cdefos="-DNDEBUG=1 $CFLAGS $_cdefos"
+ fi
+-test -n "$LDFLAGS" && _osldef="$LDFLAGS $_osldef"
+-test -n "$LIBS" && _osldef="$LIBS $_osldef"
++test "X$LDFLAGS" != X && _osldef="$LDFLAGS $_osldef"
++test "X$LIBS" != X && _osldef="$LIBS $_osldef"
+
+-if test "$_target_system" = dos ; then
++if test "X$_target_system" = Xdos ; then
+ # disable cc_check call for DJGPP due bugs in bash
+ _cdefos="-D__HAVE_PRAGMA_PACK__=1 $_cdefos"
+ else
+@@ -668,10 +668,10 @@
+ _curseslib=
+ disable _curses
+ cc_check -lcurses && _curseslib="-lcurses"
+- if test -z "$_curseslib" ; then
++ if test "X$_curseslib" = X ; then
+ cc_check -lncurses && _curseslib="-lncurses"
+ fi
+- if test -n "$_curseslib" ; then
++ if test "X$_curseslib" != X ; then
+ enable _curses
+ _cdefos="-D_CURSES_ -D__OS_NAME__='\"Unix/Curses\"' $_cdefos"
+ _oslibs="$_curseslib $_oslibs"
+@@ -711,10 +711,10 @@
+ enabled sys_resource_h && _cdefos="-DHAVE_SYS_RESOURCE=1 $_cdefos"
+ echores "$sys_resource_h"
+
+-if test -z "$_x11libdir" ; then
++if test "X$_x11libdir" = X ; then
+ _cdefos="$_cdefos"
+ else
+- if test -z "$_x11incdir" ; then
++ if test "X$_x11incdir" = X ; then
+ _cdefos="$_cdefos"
+ else
+ _cdefos="-DHAVE_X11 $_cdefos"
+@@ -738,7 +738,7 @@
+ fi
+
+ # Checking for INSTALL
+-if test -z $_install
++if test "X$_install" = X
+ then
+ _install="install"
+ $_install --version 1>/dev/null 2>/dev/null || _install=""
diff --git a/dev-util/biew/metadata.xml b/dev-util/biew/metadata.xml
new file mode 100644
index 000000000000..5894b06df22b
--- /dev/null
+++ b/dev-util/biew/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">beye</remote-id>
+ </upstream>
+</pkgmetadata>