diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-editors/lfhex |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-editors/lfhex')
-rw-r--r-- | app-editors/lfhex/Manifest | 7 | ||||
-rw-r--r-- | app-editors/lfhex/files/01-abs-llabs.dpatch | 19 | ||||
-rw-r--r-- | app-editors/lfhex/files/02-gcc-4.7.dpatch | 19 | ||||
-rw-r--r-- | app-editors/lfhex/lfhex-0.42.ebuild | 37 | ||||
-rw-r--r-- | app-editors/lfhex/metadata.xml | 5 |
5 files changed, 87 insertions, 0 deletions
diff --git a/app-editors/lfhex/Manifest b/app-editors/lfhex/Manifest new file mode 100644 index 000000000000..723ef995bd4f --- /dev/null +++ b/app-editors/lfhex/Manifest @@ -0,0 +1,7 @@ +AUX 01-abs-llabs.dpatch 792 SHA256 7f552da0fca853da2a7e7ae8cfd9c31b17f130b3f74daffa9f65110030226bed SHA512 cb23e3541b3ff93ceb86d52fdee6028588bd79f0270bd2bae78ba9c8e729bb7d2fd50ab08b83b6546935b67c4076593f8c5457166c81e1e4ee65adc10b034965 WHIRLPOOL e9d5400c45c16f031c414dbd330c90a940cb1fa67b1fdcacca40af6dff94d591e9882b6de66f89c59003613f2b1ecebbec92502402a33a9aa389e4e19f8a0098 +AUX 02-gcc-4.7.dpatch 717 SHA256 14c726a5e235262979a72f2957d8624d9979094726b16554b5f6ed6cfd70045b SHA512 4f934f4a63b1530e672d59ca3ee5a2304b2be5404d2e4ac708d4e51af69b6f4b5ed818005409ce831701fa92db8f634b06a4cc69ea002205f7985931fd06fc53 WHIRLPOOL 7a81639680f336d794680561db2f7fd0bb25740545d18447934e2308002bcb3aadc168a25e9005fe13a529e9fff730c384e533376ac11b4b1e5fe4a7d46ba3d4 +DIST lfhex-0.42.tar.gz 868287 SHA256 4e8f8b99eb271242937037a3af2fe07369b653f7f7d8becbd84554118bf8baba SHA512 5b0d61f732b4b3a0ff2d73ae3ea551af78047a2edd45916d6ad61fb6d89c18faa4e28ed321e51e034519635c3310ce7b0b67fb809ed67d6c37cb252b78696c88 WHIRLPOOL 720e812edb8d33968d7c89ccaf85096b80dd377743819111c436ce5315d36e070ac37727d4422bb982cf0f6aba69e41335a58a76b1e4d5f143a0948feb26aba5 +EBUILD lfhex-0.42.ebuild 733 SHA256 76169c50676c1990abc5fc15aa287b842750b22f5330c8cade6ba3fea817aa08 SHA512 ddd5a34b3eeff8fdc703161ea2d7d6824c56e4023bf44033d055d36ac64fefdf965f3116f6e9356e3a27df3f79e808a8e94682801d0b953a7584a6e2f6f4737e WHIRLPOOL 640b8475794b2518efbd2c740056a0594603cc497d6e0d8056fa505e9665603fea6800b00daeadc49179374289bed4fc1524b6262ad28a42c6bb5499b63cbf39 +MISC ChangeLog 2573 SHA256 d9b96761a68e9cd52126e5d8bc8a23b2d5b32532370e7c4a6668ba7e3efe7a4b SHA512 ce536b1fb56f4f87bf17228a344cf06ed59b582fbffce9c6447c33f118275221469f748fb7e8cb8ed9c8d7ddb30c9c1786c9771ea32d0941f412ff8a93c80e8c WHIRLPOOL 6d1b19abd48117fe277aa5f5f4d7988e90de1b0d4357dbe38798e661b73522662caed9278d0ed80288b368506ee06e8d5e75a4b5b7f661e68d2d0c8d1d3c55a9 +MISC ChangeLog-2015 4399 SHA256 44a2cf527eb7f6145a651a34973b534a9189127fe50dc45ae1f7f34eac86ec90 SHA512 c00d7c2c9d9ba3f3b0363be0fce4e71ee7fb93ae396b0a55d42f5b6eef93ac42c1e41806c58859090711d555e77c392801b0c0f9c144df153d978b4c36d3a659 WHIRLPOOL 92919bb7a40215b3f71500272fabf3e667cba4f7936e3ed838b7b783e9e4234190293f1fb0ceddd6b47d353e6f8815cc652e410ada34d2c10e2695a9f176360d +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/app-editors/lfhex/files/01-abs-llabs.dpatch b/app-editors/lfhex/files/01-abs-llabs.dpatch new file mode 100644 index 000000000000..74ffcbce7299 --- /dev/null +++ b/app-editors/lfhex/files/01-abs-llabs.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 01-abs-llabs.dpatch by Thiemo Seufer +## +## DP: Fixes FTBFS due to abs() not being in the global anymore since g++ 4.3 +## (#495467) + +diff -up lfhex-0.42.orig/src/reader.cpp lfhex-0.42/src/reader.cpp +--- lfhex-0.42.orig/src/reader.cpp 2008-10-08 19:25:57.000000000 +0200 ++++ lfhex-0.42/src/reader.cpp 2008-10-08 19:26:16.000000000 +0200 +@@ -238,7 +238,7 @@ bool Reader::loadPage(off_t pageIdx) + // free the page which is the furthest away from the page we are loading + + // this could be trouble if off_t is unsigned! +- if( abs(_firstPage - pageIdx) > abs(_lastPage - pageIdx) ) ++ if( ::llabs(_firstPage - pageIdx) > ::llabs(_lastPage - pageIdx) ) + while(!freePage(_firstPage++)); + else + while(!freePage(_lastPage--)); + diff --git a/app-editors/lfhex/files/02-gcc-4.7.dpatch b/app-editors/lfhex/files/02-gcc-4.7.dpatch new file mode 100644 index 000000000000..0d58072d9574 --- /dev/null +++ b/app-editors/lfhex/files/02-gcc-4.7.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02-gcc-4.7.dpatch by gregor herrmann <gregoa@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: add missing include to avoid FTBFS with gcc 4.7 +## DP: Bug-Debian: http://bugs.debian.org/667238 + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' lfhex-0.42~/src/expr.h lfhex-0.42/src/expr.h +--- lfhex-0.42~/src/expr.h 2008-09-19 02:36:49.000000000 +0200 ++++ lfhex-0.42/src/expr.h 2012-05-07 17:03:22.788794002 +0200 +@@ -19,6 +19,7 @@ + */ + + #include <string> ++#include <sys/types.h> + + bool expr_eval( const std::string &str, off_t &value ); + diff --git a/app-editors/lfhex/lfhex-0.42.ebuild b/app-editors/lfhex/lfhex-0.42.ebuild new file mode 100644 index 000000000000..ba168caf5ddc --- /dev/null +++ b/app-editors/lfhex/lfhex-0.42.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +inherit eutils qt4-r2 + +DESCRIPTION="A fast hex-editor with support for large files and comparing binary files" +HOMEPAGE="http://stoopidsimple.com/lfhex" +SRC_URI="http://stoopidsimple.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="dev-qt/qtgui:4 + x11-libs/libXt" +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison" + +S=${WORKDIR}/${P}/src + +src_prepare() { + # Apply Debian patches to fix compilation errors like gcc-4.7 compat + epatch "${FILESDIR}"/*.dpatch +} + +src_configure() { + eqmake4 +} + +src_install() { + dobin lfhex + dodoc ../README + make_desktop_entry "${PN}" "${PN}" +} diff --git a/app-editors/lfhex/metadata.xml b/app-editors/lfhex/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/app-editors/lfhex/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> |