summaryrefslogtreecommitdiff
path: root/app-editors/hteditor
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 /app-editors/hteditor
reinit the tree, so we can have metadata
Diffstat (limited to 'app-editors/hteditor')
-rw-r--r--app-editors/hteditor/Manifest6
-rw-r--r--app-editors/hteditor/files/hteditor-2.1.0-gcc-7.patch32
-rw-r--r--app-editors/hteditor/hteditor-2.1.0.ebuild50
-rw-r--r--app-editors/hteditor/metadata.xml13
4 files changed, 101 insertions, 0 deletions
diff --git a/app-editors/hteditor/Manifest b/app-editors/hteditor/Manifest
new file mode 100644
index 000000000000..19e92d4718c6
--- /dev/null
+++ b/app-editors/hteditor/Manifest
@@ -0,0 +1,6 @@
+AUX hteditor-2.1.0-gcc-7.patch 724 SHA256 2490a26301d6b29d599b38574130f6c644f7172d66753096c216490d0fa305ae SHA512 afdc2fef1c05a225e9a8e8d4ccd25a8b1912ff6532dd09a320f6df031edb732d9b9b99fb77f39cd41ccc45fd9818fae1b802ca1831669a0e2825b59094094de9 WHIRLPOOL 24681b9f1769bb7073be871af4cfe3fc5dfceed650b6c07fde44047cc4049eb84a9f6f33263867b1c8e42e2b442901c85cd730987ad783ea4ab1f11a4b99091a
+DIST ht-2.1.0.tar.bz2 884139 SHA256 31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70 SHA512 6b5fc5fcbc63b9b7c85721158e044e4578ebfdc38618c760c0e6de06a276bccd3a960ab8bed172de788934515ad94d86349c4abd3228da66b1601deaaa2ce410 WHIRLPOOL c039658bb7e1d2391077cf02b51291e177e12a3701acda0917c16a25054cdad5330516b2d013ff4e4f2d9de7e8ae132a7cc574a5e77c093b6d2ad48501f2c053
+EBUILD hteditor-2.1.0.ebuild 1061 SHA256 e40dc569da8c17ed3860dfab3c77bb62956f5e1aaa561a5f7bbf743da45b4272 SHA512 554fe11db69061e25e74c3bb623340fd0e77824416d2d431eab05e2e4e52f73d6605f8a7ab5ae0b4cb7f02836af88baa60b1b129fb6da2dc0fb60fafcf1e1f38 WHIRLPOOL eddb0502759a0f05f5f7c7ff4881852023d9696523707a7cecc95b6b38fb4b790d0e4db736255e5d6125119284361ba3a42b2ad522e3ab9b7d8dfaf519eedd09
+MISC ChangeLog 2804 SHA256 010338f9e9d252f981ec50207ee236948fde734538d1de48be92b5d16d7496e4 SHA512 bae4c9cc2d1da8ead065c6ce31330863b769c3fc5979dc5928cc817605a73aba22789f0186957fdacdbaf36b80323acee2709b2a69ff7df41ff9280cdc696752 WHIRLPOOL 2ec05d9545f3adba468bcc261e77967af283841450d281247272442169c3a0b34a23ca0918987b351bac4d10f28de82592098ce80673e615afa7a0aa9badc61b
+MISC ChangeLog-2015 10124 SHA256 6e4ec2d0097f6387e736576d3ed82ebf22cfc2ec99b04c777780b8455a1308ee SHA512 3259f68a53d9338b74ead63154e9213b4b73b3a24373c670fde71a724e50727dc16007c38cc624ed6b0a5450e3b0d1367887cec1ffea52c17cefcc8ab96a789d WHIRLPOOL ebca1e1b39d0bcb27e124cdb60f2dc39fa4000a2d97a3b2801a4dae100e1d0f32e6803e990799d10cb1a51d206d80c116876ffb54a326604b984944d40899fb6
+MISC metadata.xml 460 SHA256 15540099e529459a270fcd95b21620600df5b45c29f6a1275984eed61873b32b SHA512 ff08b42c35979dbf9c165ae5895374779c53ab4d80e25edb9bf0d854ac44c89dd01bd817fc555d75036e687f007abbd717593af0554e6315dced60372bec4707 WHIRLPOOL 285dc7c4c820f7078dad580674cf5e002e1047b2b160c73e7c64e492e2a732b2d4fead623fa7ac1e0e5e59cfab432fa71e95e1b6867890d6a106ae3c7530692e
diff --git a/app-editors/hteditor/files/hteditor-2.1.0-gcc-7.patch b/app-editors/hteditor/files/hteditor-2.1.0-gcc-7.patch
new file mode 100644
index 000000000000..ebcc3c0aa43e
--- /dev/null
+++ b/app-editors/hteditor/files/hteditor-2.1.0-gcc-7.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/show_bug.cgi?id=620732
+
+Fixes build failure on gcc-7:
+
+ htapp.cc: In function 'uint isqr(uint)':
+ htapp.cc:3026:18: error: call of overloaded 'abs(uint)' is ambiguous
+ while (abs(a - b) > 1) {
+ ^
+
+Picked upstream patch that fixes it:
+
+commit 3b62f2f7e49e024ec9d3c5ffc8ff9cd87a107af6
+Author: Sebastian Biallas <sb@biallas.net>
+Date: Sun Nov 13 15:25:26 2016 +0100
+
+ use unsigned variables
+
+diff --git a/htapp.cc b/htapp.cc
+index 53d8725..03236e2 100644
+--- a/htapp.cc
++++ b/htapp.cc
+@@ -3021,8 +3021,8 @@ void do_modal_resize()
+
+ static uint isqr(uint u)
+ {
+- uint a = 2;
+- uint b = u/a;
++ int a = 2;
++ int b = u/a;
+ while (abs(a - b) > 1) {
+ a = (a+b)/2;
+ b = u/a;
diff --git a/app-editors/hteditor/hteditor-2.1.0.ebuild b/app-editors/hteditor/hteditor-2.1.0.ebuild
new file mode 100644
index 000000000000..a38ef31072d0
--- /dev/null
+++ b/app-editors/hteditor/hteditor-2.1.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+MY_P=${P/editor}
+
+DESCRIPTION="A file viewer, editor and analyzer for text, binary, and executable files"
+HOMEPAGE="http://hte.sourceforge.net/ https://github.com/sebastianbiallas/ht/"
+SRC_URI="mirror://sourceforge/hte/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="X"
+
+RDEPEND="sys-libs/ncurses:0=
+ X? ( x11-libs/libX11 )
+ >=dev-libs/lzo-2"
+DEPEND="${RDEPEND}
+ virtual/yacc
+ sys-devel/flex"
+
+DOCS=( AUTHORS ChangeLog KNOWNBUGS README TODO )
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=("${FILESDIR}"/${P}-gcc-7.patch)
+
+src_configure() {
+ econf \
+ $(use_enable X x11-textmode) \
+ --enable-maintainermode
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install() {
+ #For prefix
+ chmod u+x "${S}/install-sh"
+
+ local HTML_DOCS="doc/*.html"
+ doinfo doc/*.info
+
+ default
+}
diff --git a/app-editors/hteditor/metadata.xml b/app-editors/hteditor/metadata.xml
new file mode 100644
index 000000000000..d08e026268cd
--- /dev/null
+++ b/app-editors/hteditor/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">hte</remote-id>
+ <bugs-to>https://sourceforge.net/tracker/?group_id=1066</bugs-to>
+ <remote-id type="github">sebastianbiallas/ht</remote-id>
+ </upstream>
+</pkgmetadata>