diff options
Diffstat (limited to 'app-misc/hexcompare')
-rw-r--r-- | app-misc/hexcompare/files/hexcompare-1.0.4-Makefile.patch | 6 | ||||
-rw-r--r-- | app-misc/hexcompare/hexcompare-1.0.4.ebuild | 24 | ||||
-rw-r--r-- | app-misc/hexcompare/metadata.xml | 2 |
3 files changed, 18 insertions, 14 deletions
diff --git a/app-misc/hexcompare/files/hexcompare-1.0.4-Makefile.patch b/app-misc/hexcompare/files/hexcompare-1.0.4-Makefile.patch index 5ccef2047bc7..2af79a1d2967 100644 --- a/app-misc/hexcompare/files/hexcompare-1.0.4-Makefile.patch +++ b/app-misc/hexcompare/files/hexcompare-1.0.4-Makefile.patch @@ -1,5 +1,5 @@ ---- hexcompare-1.0.4/Makefile -+++ hexcompare-1.0.4/Makefile +--- a/Makefile ++++ b/Makefile @@ -1,9 +1,9 @@ -CFLAGS = -O3 -Wall -Wextra -pedantic -Wformat-security -std=gnu89
+CFLAGS += -Wall -Wextra -pedantic -Wformat-security -std=gnu89
@@ -8,7 +8,7 @@ hexcompare: main.c gui.c
- $(CC) $(CFLAGS) -o hexcompare main.c gui.c -lncurses
-+ $(CC) $(CFLAGS) `pkg-config --cflags ncurses` -o hexcompare main.c gui.c `pkg-config --libs ncurses`
++ $(CC) $(CFLAGS) `${PKG_CONFIG} --cflags ncurses` -o hexcompare main.c gui.c `${PKG_CONFIG} --libs ncurses`
clean:
rm -f *.o
diff --git a/app-misc/hexcompare/hexcompare-1.0.4.ebuild b/app-misc/hexcompare/hexcompare-1.0.4.ebuild index 7b11bccd5ad8..940f96268076 100644 --- a/app-misc/hexcompare/hexcompare-1.0.4.ebuild +++ b/app-misc/hexcompare/hexcompare-1.0.4.ebuild @@ -1,25 +1,29 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 -inherit eutils toolchain-funcs +inherit toolchain-funcs DESCRIPTION="ncurses-based visual comparison of binary files" -HOMEPAGE="http://hexcompare.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="https://sourceforge.net/projects/hexcompare/" +SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" -RDEPEND="sys-libs/ncurses:0" +RDEPEND="sys-libs/ncurses:0=" DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" -src_prepare() { - epatch "${FILESDIR}"/${P}-Makefile.patch - tc-export CC +PATCHES=( + "${FILESDIR}"/${P}-Makefile.patch +) + +src_configure() { + tc-export CC PKG_CONFIG + default } src_install() { diff --git a/app-misc/hexcompare/metadata.xml b/app-misc/hexcompare/metadata.xml index 38b6347b943d..9d4f5d1e8cf0 100644 --- a/app-misc/hexcompare/metadata.xml +++ b/app-misc/hexcompare/metadata.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <!-- maintainer-needed --> <upstream> |