summaryrefslogtreecommitdiff
path: root/media-libs/urt
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/urt')
-rw-r--r--media-libs/urt/Manifest6
-rw-r--r--media-libs/urt/files/urt-3.2_rc1_p20250101-ar.patch41
-rw-r--r--media-libs/urt/files/urt-3.2_rc1_p20250101-respect-ldflags.patch11
-rw-r--r--media-libs/urt/metadata.xml3
-rw-r--r--media-libs/urt/urt-3.2_rc1_p20250101.ebuild85
5 files changed, 145 insertions, 1 deletions
diff --git a/media-libs/urt/Manifest b/media-libs/urt/Manifest
index a7085166952d..1d6b668c28ce 100644
--- a/media-libs/urt/Manifest
+++ b/media-libs/urt/Manifest
@@ -7,6 +7,10 @@ AUX urt-3.1b-r2-build-fixes.patch 4888 BLAKE2B 0bb2dba64a62429df650652937712a7a5
AUX urt-3.1b-rle-fixes.patch 5108 BLAKE2B 0aca69e90f54386a654d1a20958239c988b48dd8a5bf1c879d2000df202beaa134a6d1aad538de4f9333e7c78010f27c55e227e332cef2dd232f84c834527d0c SHA512 b5a05d2ee083ee35105346fd7d0aa9e0f36c98f709abaa40e354adf858480c90793cfebfbd0a6214e832454c446828d50baedbc9767e7bc742209c9e86d0b030
AUX urt-3.1b-solaris.patch 281 BLAKE2B 55cc8b4824624c5b9f6db6ff6e62c841950c222981de896c8c6e9d66a8dbb1cbe5b90e54e3f24b07bea23c508c260e0639720b4103ada81fea3277e06ca63939 SHA512 6403f48e858af2f8a177588e231367c09f8c939fc614198a10e45ca83ec000f9d5baf67681c5a65fe75177d59d34ab10c19c3621ac0eda6382793ed3b6bd8d84
AUX urt-3.1b-tempfile.patch 597 BLAKE2B 9f032e0b4dab232d4540a5e7043ff73ace2e6fcdc69e0b2ba1ecedc7f2b62902e0dfadaa78a2e1cddf6f0c173767afe36ee20af0a586072472c77d8f7d81212a SHA512 83784725f216d387771698b0f29c6d5b2bd5e79e5f6deb091905bbb87839824314217641df760cfb18ce87c9d58196860a4c9d12f08da6020fc80a2e7d40347f
+AUX urt-3.2_rc1_p20250101-ar.patch 967 BLAKE2B 659fbfb052eb039e5c098c214491a1ddc74e9e63352aba92c62bb6ab0589c6f45236d0511f9fcfeb71a7123ba9e8d06cc71ba2937067f2b99f1dd6044008d58f SHA512 ccac18ebbe8b70ade62cc1cd9ac2985aeb3695d0b6b7b5863a6b8fdae04bee27bc49da48cc56029cbdeb973fb3d4ecf024c9b4eb9923bdc49851089ab625b8f0
+AUX urt-3.2_rc1_p20250101-respect-ldflags.patch 372 BLAKE2B 7d520c7e59f9e8fe9c9e445f32a4a9691b1e96e6579f471838d3c8ae10c5d98d84a0f3e5992ff0d0a91dc5c9f133568f2f88e23ad18316d969bfca4a3fd91cde SHA512 ba3cce51a80a023843bb95fa096ea3230d74363076ff8e38fe5991e6affafe0aaa2d9bffe6de2863a554551810bf0fa07a2f752ceee2c404de14088ac93c56d5
DIST urt-3.1b.tar.Z 1016405 BLAKE2B 68742773591e2ae28702efb4286939c4000d32edd93110548abc25ab62bfa85e36354f20de6aa74c805ea1c4c8dfa23219c9e6fb08e1c73d90d2625404583aa1 SHA512 6c9070cd106f1d696d22f862cc1c4e10325fafc7bae51e8bb1fb98f6bf8babe21a133e21b3acc0c11cf1b28a23123c8ee7bb064c9d86301b14a1c217fbe1a12d
+DIST urt-3.2_rc1_p20250101.tar.gz 1079866 BLAKE2B 519760a11b10d1cad1d2f9ba6b0de3918000ad9a6fa0a3edbf0382d8bdf99248aa12e89aec09bbe134db0138f8eb1326bad06a9c6ad581766b5f45bee3152989 SHA512 347fabddc2ff14f9313d2ed2ad7902b0fdc2108e1cb0d472f4040c2ab42c171360be390833359d813ad03bf4ea94537fe481a1bd5facfd9b72b2178622771e66
EBUILD urt-3.1b-r3.ebuild 2365 BLAKE2B 9e04a0253611de38a45a5ccc2879c9ef37f949431df1187d9543e0887260e32ff3578557d1ffdea0174932ef1a827e5e727e3d0bbd4731ae7822ffc6c5b682be SHA512 cfeb7898d007d4c9e2f1b5b67432c08af4baf19a18bbe7861b6d7d16af32357c92da223fb9145dee3eda045f07af792edfaf3bf088ccbeb50d88b1f6e2d843b0
-MISC metadata.xml 225 BLAKE2B a54914e6c67f39dfe7ff921407b1ec063e68eab8292fbc6863e5bb41481f26cf474b7d3281669ea23545cedbed586350a99c305fb3d3a888a3848de13aeac5a4 SHA512 3fd10f5461db46d8be442335e29cdcfba7425e0d93443d45e4238c6767669ce5a0371fd4eb31df6129c089fd90e5433ed9d4366d288d6d2e8ac673bf435d4256
+EBUILD urt-3.2_rc1_p20250101.ebuild 1965 BLAKE2B 2aec358495bc80828dfc85a45dbf492e6e11396400bfcfb4798046a3ab83670e22c3b6ee752ede27b7ddb3c8ecee626153e6febf41c47c5eea07d360460b3735 SHA512 e0b8dd3df43d92688a990d6eca46d6c5d711972cad17627928e250f8779d2294270fe3d2032a0cebab79f42929c63d50d901f4337929c2255a025b42731d12c7
+MISC metadata.xml 301 BLAKE2B dd6601ae6f8bcdd95c8cdde5da28f782689b737212887167ed671341b6bc09b5c7d36fff3cd1e83089e76645ca1d4a35b245358cce07c832fff8a9e2c6a288d3 SHA512 82b0ef3316b221ed81fe24d67105bd55e2a7d86da73ae441b0d71f15ff297dff77ddc727e135fde511b4639170f1411f4e43286913abb3b1b3e06284fd46fdfc
diff --git a/media-libs/urt/files/urt-3.2_rc1_p20250101-ar.patch b/media-libs/urt/files/urt-3.2_rc1_p20250101-ar.patch
new file mode 100644
index 000000000000..1740530cf1c4
--- /dev/null
+++ b/media-libs/urt/files/urt-3.2_rc1_p20250101-ar.patch
@@ -0,0 +1,41 @@
+https://bugs.gentoo.org/947316
+
+--- a/lib/makefile.src
++++ b/lib/makefile.src
+@@ -50,8 +50,8 @@
+ echo cp $(LIBNAME) $(DEST)/ ; \
+ cp $(LIBNAME)* $(DEST)/ ; \
+ if test x$(RANLIB) != x ; then \
+- echo ranlib $(DEST)/$(STATIC) ; \
+- ranlib $(DEST)/$(STATIC) ; \
++ echo $(RANLIB) $(DEST)/$(STATIC) ; \
++ $(RANLIB) $(DEST)/$(STATIC) ; \
+ else \
+ true ; \
+ fi ; \
+@@ -60,11 +60,11 @@
+ cp $(LIBNAME)* $(DEST)/debug/ ; \
+ if test x$(RANLIB) != x ; then \
+ cp $(LIBNAME) $(DEST)/debug/$(STATIC) ; \
+- echo ranlib $(DEST)/debug/$(STATIC) ; \
++ echo $(RANLIB) $(DEST)/debug/$(STATIC) ; \
+ else \
+ true ; \
+ fi ; \
+- ranlib $(DEST)/debug/$(STATIC) ; \
++ $(RANLIB) $(DEST)/debug/$(STATIC) ; \
+ else \
+ true ; \
+ fi ; \
+@@ -82,9 +82,9 @@
+ touch buildshared
+
+ buildlib: $(OBJS)
+- ar rcs $(STATIC) $(OBJS)
++ $(AR) rcs $(STATIC) $(OBJS)
+ #ifndef NO_RANLIB
+- ranlib $(STATIC)
++ $(RANLIB) $(STATIC)
+ #endif
+ touch buildlib
+
diff --git a/media-libs/urt/files/urt-3.2_rc1_p20250101-respect-ldflags.patch b/media-libs/urt/files/urt-3.2_rc1_p20250101-respect-ldflags.patch
new file mode 100644
index 000000000000..94cf20e2a414
--- /dev/null
+++ b/media-libs/urt/files/urt-3.2_rc1_p20250101-respect-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/get/getx11/makefile.src
++++ b/get/getx11/makefile.src
+@@ -50,7 +50,7 @@
+
+ # getx11 - read RLE file to X11 display
+ getx11.out: $(X_O_FILES)
+- ${CC} $(CFLAGS) $(X_O_FILES) -o getx11.new $(LIBS)
++ ${CC} $(CFLAGS) $(X_O_FILES) -o getx11.new $(LDFLAGS) $(LIBS)
+ mv getx11.new getx11.out
+
+ # Make prototypes.h and fn_decls.h. Only happens if HAVE_CPROTO is defined.
diff --git a/media-libs/urt/metadata.xml b/media-libs/urt/metadata.xml
index 0962f154ba65..93be572a5696 100644
--- a/media-libs/urt/metadata.xml
+++ b/media-libs/urt/metadata.xml
@@ -5,4 +5,7 @@
<use>
<flag name="tools">Install tools</flag>
</use>
+ <upstream>
+ <remote-id type="github">sarnold/urt</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/media-libs/urt/urt-3.2_rc1_p20250101.ebuild b/media-libs/urt/urt-3.2_rc1_p20250101.ebuild
new file mode 100644
index 000000000000..ace5d4c90998
--- /dev/null
+++ b/media-libs/urt/urt-3.2_rc1_p20250101.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo flag-o-matic toolchain-funcs
+
+COMMIT_ID=e5a6997b9d494f3010b2c32b1e3f0660ec7991ac
+DESCRIPTION="the Utah Raster Toolkit is a library for dealing with raster images"
+HOMEPAGE="https://sarnold.github.io/urt/ https://github.com/sarnold/urt"
+SRC_URI="https://github.com/sarnold/urt/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT_ID}"
+
+LICENSE="GPL-2 gif? ( free-noncomm )"
+SLOT="0/3.1.0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
+IUSE="gif postscript static-libs tiff tools X"
+
+RDEPEND="
+ gif? ( media-libs/giflib )
+ postscript? ( app-text/ghostscript-gpl )
+ tiff? ( media-libs/tiff:= )
+ X? ( x11-libs/libXext )
+"
+
+DEPEND="
+ ${RDEPEND}
+ X? ( x11-base/xorg-proto )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-respect-ldflags.patch
+ "${FILESDIR}"/${P}-ar.patch
+)
+
+urt_config() {
+ use $1 && echo "#define $2" || echo "##define $2"
+}
+
+src_prepare() {
+ rm bin/README || die
+
+ default
+}
+
+src_configure() {
+ append-cflags -fPIC
+
+ sed -i -e '/^CFLAGS/s: -O2 : :' makefile.hdr || die
+
+ cat >> config/gentoo <<-EOF
+ $(urt_config X X11)
+ $(urt_config gif GIF)
+ $(urt_config postscript POSTSCRIPT)
+ $(urt_config tiff TIFF)
+ ExtraCFLAGS = ${CFLAGS}
+ MFLAGS = ${MAKEOPTS}
+ EOF
+
+ edob -m "Configuring" ./Configure config/gentoo
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
+}
+
+src_install() {
+ mkdir -p man-dest/man{1,3,5}
+ # this just installs it into some local dirs
+ emake install
+
+ use tools && dobin bin/*
+
+ use static-libs && dolib.a lib/librle.a
+
+ dolib.so lib/librle.so
+ dolib.so lib/librle.so.3
+ dolib.so lib/librle.so.3.1.0
+ dosym librle.so /usr/$(get_libdir)/librle-0.0.0.so
+
+ insinto /usr/include
+ doins include/rle*.h
+ doman man-dest/man?/*.[135]
+ dodoc *-changes CHANGES* README* blurb
+}