diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/hxd | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/hxd')
-rw-r--r-- | dev-util/hxd/Manifest | 5 | ||||
-rw-r--r-- | dev-util/hxd/files/hxd-0.70.02-llong-redef.patch | 25 | ||||
-rw-r--r-- | dev-util/hxd/files/hxd-0.70.02-prll-flags.patch | 56 | ||||
-rw-r--r-- | dev-util/hxd/hxd-0.70.02-r2.ebuild | 32 | ||||
-rw-r--r-- | dev-util/hxd/metadata.xml | 5 |
5 files changed, 123 insertions, 0 deletions
diff --git a/dev-util/hxd/Manifest b/dev-util/hxd/Manifest new file mode 100644 index 000000000000..780bdd77ae4c --- /dev/null +++ b/dev-util/hxd/Manifest @@ -0,0 +1,5 @@ +AUX hxd-0.70.02-llong-redef.patch 677 BLAKE2B ffd58ae3a71b2a81aac44ae2cbb70cfa6983a41f9c377a06306ccddc2c3967637f971aca183f70115a42e058413a0799936471b2be9b22e30079407719a905eb SHA512 1bb2e1db48fdc804ee7b7600f27d0290d546f84c85f5e577afadcda35c8df93bbeb2e9f0ed8e4110cd26f40f76c54ebbf83d21c3a2b31101140900ee8b92a78d +AUX hxd-0.70.02-prll-flags.patch 2241 BLAKE2B b64848b606c0bbf4e31b46bbf98b0ee44e929bc5f1bc1ee33bd118d6020dbc2540696cad2a0f89e1221a11eae0ab702a0eeab1742d3680e1b00c0114c789e108 SHA512 d83ddb0a9e595d4d5f39d0d8772e3a00c3fe2f25d418a6bb3c618f04fe66a71426d527e3dcb55d2a11ac0d7bc6b2bd262065eae94fc103b3f5ab7f34dc528d35 +DIST hxd-0.70.02.tar.gz 17469 BLAKE2B 9dd5ee7cf4949de5b732b14200c9fc3e8076c4e452416d4dc8201e2490459e31b02ffb30c4eaf6cc99a2a04a87380f8e842d40e23e93b5ebf46c73f0130d826d SHA512 631b3ea74a7f831984abb1bb0c1a32d38ff2980063321fa1e85fc594fe23407cddf5d61fd1005ec154aecf6be8344e070600faf90d176061f195e6a39d8991af +EBUILD hxd-0.70.02-r2.ebuild 602 BLAKE2B 72a1daa0355cb3a19e52bd4af8b24dc3a1b534064d73cfb737073aa05708a43ffbdce12274042130e181dec1c394f1c0283b44b1aa8d038a43b8d9c74b1320ff SHA512 cc16b8330c9cb85e606c9f836917bc3f17595115d2e408b43772b5625d06626ab59b3861a72096750ac727929a76e93d48873c296850cbc6774ee76d9228064c +MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 diff --git a/dev-util/hxd/files/hxd-0.70.02-llong-redef.patch b/dev-util/hxd/files/hxd-0.70.02-llong-redef.patch new file mode 100644 index 000000000000..e9e230c867ac --- /dev/null +++ b/dev-util/hxd/files/hxd-0.70.02-llong-redef.patch @@ -0,0 +1,25 @@ + general.h | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/general.h b/general.h +index 0a2ebe7..b749945 100644 +--- a/general.h ++++ b/general.h +@@ -56,7 +56,7 @@ + + #ifdef HAVE_LONGLONG + loff_t lseek64( int fd, loff_t offset, int whence ); +-#define LLONG_MAX 0x7fffffffffffffffll ++#define L_LONG_MAX 0x7fffffffffffffffll + #undef LSEEK + #define LSEEK(A,B,C) lseek64((A),(B),(C)) + #undef STRTOL +@@ -64,7 +64,7 @@ loff_t lseek64( int fd, loff_t offset, int whence ); + #undef SIZE_MIN + #define SIZE_MIN ( (loff_t) 0 ) + #undef SIZE_MAX +-#define SIZE_MAX ( LLONG_MAX - 1 ) ++#define SIZE_MAX ( L_LONG_MAX - 1 ) + #undef OFF_T + #define OFF_T loff_t + #endif diff --git a/dev-util/hxd/files/hxd-0.70.02-prll-flags.patch b/dev-util/hxd/files/hxd-0.70.02-prll-flags.patch new file mode 100644 index 000000000000..f08f2eb18063 --- /dev/null +++ b/dev-util/hxd/files/hxd-0.70.02-prll-flags.patch @@ -0,0 +1,56 @@ + Makefile.Linux | 23 +++++++++++++++-------- + 1 files changed, 15 insertions(+), 8 deletions(-) + +diff --git a/Makefile.Linux b/Makefile.Linux +index e3711cd..d5b00cb 100644 +--- a/Makefile.Linux ++++ b/Makefile.Linux +@@ -1,6 +1,6 @@ +-CC=gcc +-CFLAGS=-Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -I$(HDDIR) -DOS_TYPE_Linux -DOS_TYPE_STR=\"Linux\" +-LDFLAGS=-Wl,-warn-common -s -L$(LIBDIR) ++CC ?=gcc ++CFLAGS+=-Wall -Wstrict-prototypes -I$(HDDIR) -DOS_TYPE_Linux -DOS_TYPE_STR=\"Linux\" ++LDFLAGS+=-Wl,-warn-common -L$(LIBDIR) + + LDLIBS = + HDDIR = ./ +@@ -32,26 +32,33 @@ $(PRG_UNDUMP): $(PRG_UNDUMP).c $(PRG_UNDUMP).h general.h + $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_UNDUMP)\" -DMANUAL_NUMBER=$(MAN_NO_UNDUMP) $(LDFLAGS) $(PRG_UNDUMP).c -o $@ + + +-$(MAN_DUMP): $(PRG_DUMP).man ++mkmkman: $(PRG_DUMP) + $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_DUMP)\" -DMANUAL_NUMBER=$(MAN_NO_DUMP) -Dundump_name=\"$(PRG_UNDUMP)\" $(LDFLAGS) mkmkman.c -o mkmkman ++ ++mkman.c: mkmkman $(PRG_DUMP).man + cat $(PRG_DUMP).man | ./mkmkman > mkman.c + ln -sf $(PRG_DUMP).h header.h ++ ++$(MAN_DUMP): mkman.c + $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_DUMP)\" -DMANUAL_NUMBER=$(MAN_NO_DUMP) -Dundump_name=\"$(PRG_UNDUMP)\" $(LDFLAGS) mkman.c -o mkman + ./mkman > $@ + +- +-$(MAN_UNDUMP): $(PRG_UNDUMP).man ++mkmkman_u: $(MAN_DUMP) $(PRG_UNDUMP) + $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_UNDUMP)\" -DMANUAL_NUMBER=$(MAN_NO_UNDUMP) -Ddump_name=\"$(PRG_DUMP)\" $(LDFLAGS) mkmkman.c -o mkmkman ++ ++mkman_u.c: $(PRG_UNDUMP).man mkmkman_u + cat $(PRG_UNDUMP).man | ./mkmkman > mkman.c + ln -sf $(PRG_UNDUMP).h header.h ++ ++$(MAN_UNDUMP): $(MAN_UNDUMP) mkman_u.c + $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_UNDUMP)\" -DMANUAL_NUMBER=$(MAN_NO_UNDUMP) -Ddump_name=\"$(PRG_DUMP)\" $(LDFLAGS) mkman.c -o mkman + ./mkman > $@ + + + install: all +- install -s -m 0755 -o root -g root $(PRG_DUMP) $(INSTALLDIR_BIN_DUMP) ++ install -m 0755 -o root -g root $(PRG_DUMP) $(INSTALLDIR_BIN_DUMP) + install -m 0644 -o root -g root $(MAN_DUMP) $(INSTALLDIR_MAN_DUMP) +- install -s -m 0755 -o root -g root $(PRG_UNDUMP) $(INSTALLDIR_BIN_UNDUMP) ++ install -m 0755 -o root -g root $(PRG_UNDUMP) $(INSTALLDIR_BIN_UNDUMP) + install -m 0644 -o root -g root $(MAN_UNDUMP) $(INSTALLDIR_MAN_UNDUMP) + + clean: diff --git a/dev-util/hxd/hxd-0.70.02-r2.ebuild b/dev-util/hxd/hxd-0.70.02-r2.ebuild new file mode 100644 index 000000000000..ad8dc60558e7 --- /dev/null +++ b/dev-util/hxd/hxd-0.70.02-r2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +DESCRIPTION="Binary to hexadecimal converter" +HOMEPAGE="http://www-tet.ee.tu-berlin.de/solyga/linux/" +SRC_URI="http://linux.xulin.de/c/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~sparc ~mips ~ppc" + +PATCHES=( + "${FILESDIR}"/${P}-prll-flags.patch + "${FILESDIR}"/${P}-llong-redef.patch +) + +DOCS=( README TODO ) + +src_prepare() { + default + tc-export CC +} + +src_install() { + dobin "${PN}" "un${PN}" + doman "${PN}.1" "un${PN}.1" + einstalldocs +} diff --git a/dev-util/hxd/metadata.xml b/dev-util/hxd/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/dev-util/hxd/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> |