diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2022-10-09 00:30:53 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2022-10-09 00:35:44 +0200 |
commit | a47a1d8535d26adffaf93b0df37a623ed2e629c5 (patch) | |
tree | 0d2902544747df299c99772080bb2fe3eed26139 /media-gfx | |
parent | sci-visualization/gr: add REQUIRED_USE (diff) | |
download | gentoo-a47a1d8535d26adffaf93b0df37a623ed2e629c5.tar.gz gentoo-a47a1d8535d26adffaf93b0df37a623ed2e629c5.tar.bz2 gentoo-a47a1d8535d26adffaf93b0df37a623ed2e629c5.zip |
media-gfx/jhead: add 3.06.0.1
Bug: https://bugs.gentoo.org/730746
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/jhead/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/jhead/files/jhead-3.06.0.1-mkstemp-fix-makefile.patch | 52 | ||||
-rw-r--r-- | media-gfx/jhead/jhead-3.06.0.1.ebuild | 24 |
3 files changed, 77 insertions, 0 deletions
diff --git a/media-gfx/jhead/Manifest b/media-gfx/jhead/Manifest index c10ba22dd113..85a8dee9132a 100644 --- a/media-gfx/jhead/Manifest +++ b/media-gfx/jhead/Manifest @@ -1 +1,2 @@ DIST jhead-3.04.tar.gz 67754 BLAKE2B 4b81927fe3db58bf10b6e42c7e045a9d8a2f50df152faf886bb28238ef74e73371d37902c3c13e6edb74a89347b2c6f698f18dd91b51797e1882cb1d3bf5461f SHA512 d783b02059ebcb01845d346e7c48bdc9d9f12fb7b0fd47bf8aff0a85a03f3523fbc536ddab0912f1c56ddb315b6cf31f16d4c7a4f81112d9a4c76a4a57ec1aed +DIST jhead-3.06.0.1.tgz 1144608 BLAKE2B 100eaddd8585e8845e83c3eb24aefb0a0a2d477f0ee818c212cc39ad88f39cbac5532979dbe7ee8c4d7b9475fdf4cce4257679d996e4fae14ef1902ef2f8e5a2 SHA512 7804f4bab1b07eb08ed981364b3634b1c25e0657d57651871aede640254c33f9d2307ba7c9fb3bc81eb06b71ba5d27437275a3fe53859e9e9457e37e12545db9 diff --git a/media-gfx/jhead/files/jhead-3.06.0.1-mkstemp-fix-makefile.patch b/media-gfx/jhead/files/jhead-3.06.0.1-mkstemp-fix-makefile.patch new file mode 100644 index 000000000000..d25323d4ab38 --- /dev/null +++ b/media-gfx/jhead/files/jhead-3.06.0.1-mkstemp-fix-makefile.patch @@ -0,0 +1,52 @@ +diff -ruN jhead-3.06.0.1.orig/jhead.c jhead-3.06.0.1/jhead.c +--- jhead-3.06.0.1.orig/jhead.c 2021-04-14 14:02:45.000000000 +0200 ++++ jhead-3.06.0.1/jhead.c 2022-10-09 00:25:03.812585996 +0200 +@@ -377,7 +377,7 @@ + // as mktemp - that is, that between getting the random name, and making the file + // some other program could snatch that exact same name! + // also, not all platforms support mkstemp. +- mktemp(TempName); ++ mkstemp(TempName); + + + if(!TempName[0]) { +diff -ruN jhead-3.06.0.1.orig/makefile jhead-3.06.0.1/makefile +--- jhead-3.06.0.1.orig/makefile 2021-04-14 14:02:45.000000000 +0200 ++++ jhead-3.06.0.1/makefile 2022-10-09 00:27:28.659543801 +0200 +@@ -3,10 +3,14 @@ + #-------------------------------- + OBJ=obj + SRC=. +-CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) +-LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) ++LFLAGS = -fPIC -shared -Wl,-soname,libjhead.so.1 + +-all: objdir jhead ++TARGET = libjhead.so.1.0.0 ++TARGET0 = libjhead.so ++TARGET1 = libjhead.so.1 ++TARGET2 = libjhead.so.1.0 ++ ++all: objdir jhead $(TARGET) + + objdir: + @mkdir -p obj +@@ -15,7 +19,7 @@ + $(OBJ)/exif.o $(OBJ)/iptc.o $(OBJ)/gpsinfo.o $(OBJ)/makernote.o + + $(OBJ)/%.o:$(SRC)/%.c +- ${CC} $(CFLAGS) -c $< -o $@ ++ ${CC} -fPIC $(CFLAGS) -c $< -o $@ + + jhead: $(objs) jhead.h + ${CC} $(LDFLAGS) -o jhead $(objs) -lm +@@ -26,3 +30,9 @@ + install: + mkdir -p ${DESTDIR}/usr/bin/ + cp jhead ${DESTDIR}/usr/bin/ ++ ++$(TARGET): $(objs) jhead ++ ${CC} $(LDFLAGS) $(LFLAGS) -o $(TARGET) $(objs) ++ ln -s ${TARGET} ${TARGET0} ++ ln -s ${TARGET} ${TARGET1} ++ ln -s ${TARGET} ${TARGET2} diff --git a/media-gfx/jhead/jhead-3.06.0.1.ebuild b/media-gfx/jhead/jhead-3.06.0.1.ebuild new file mode 100644 index 000000000000..eb2c6cbb5bbd --- /dev/null +++ b/media-gfx/jhead/jhead-3.06.0.1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Exif Jpeg camera setting parser and thumbnail remover" +HOMEPAGE="http://www.sentex.net/~mwandel/jhead" +SRC_URI="https://github.com/Matthias-Wandel/jhead/archive/refs/tags/${PV}.tar.gz -> ${P}.tgz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +PATCHES=( "${FILESDIR}/${P}-mkstemp-fix-makefile.patch" ) + +src_install() { + dobin ${PN} + dodoc *.txt + docinto html + dodoc *.html + doman ${PN}.1 + doheader ${PN}.h + dolib.so lib${PN}.so* +} |