exiv2 0.27.3 0.27.3-1
authorLemures Lemniscati <lemures.lemniscati@gmail.com>
Wed, 30 Dec 2020 07:37:39 +0000 (16:37 +0900)
committerLemures Lemniscati <lemures.lemniscati@gmail.com>
Wed, 30 Dec 2020 07:37:39 +0000 (16:37 +0900)
0.25-find-libintl.patch [deleted file]
exiv2.cygport

diff --git a/0.25-find-libintl.patch b/0.25-find-libintl.patch
deleted file mode 100644 (file)
index a51e52d..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
---- origsrc/exiv2-0.25/config/CMakeChecks.txt  2015-04-30 10:31:18.000000000 -0500
-+++ src/exiv2-0.25/config/CMakeChecks.txt      2015-10-26 10:57:55.775278600 -0500
-@@ -38,6 +38,7 @@ INCLUDE( CheckCSourceCompiles )
- INCLUDE( CheckCXXSourceCompiles )
- INCLUDE( FindIconv )
-+INCLUDE( FindIntl )
- SET( STDC_HEADERS ON )
- SET( HAVE_DECL_STRERROR_R 0 )
-@@ -107,6 +108,7 @@ ELSE( EXIV2_ENABLE_SHARED )
- ENDIF( EXIV2_ENABLE_SHARED )
- IF( EXIV2_ENABLE_NLS )
-+    SET( ENABLE_NLS 1 )
-     IF( NOT LOCALEDIR )
-         SET( LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale" )
-         IF( WIN32 )
---- origsrc/exiv2-0.25/src/CMakeLists.txt      2015-10-26 03:33:23.828439800 -0500
-+++ src/exiv2-0.25/src/CMakeLists.txt  2015-10-26 10:56:30.452094600 -0500
-@@ -280,7 +280,7 @@ IF( EXIV2_ENABLE_PNG )
- ENDIF()
- IF( EXIV2_ENABLE_NLS )
--    TARGET_LINK_LIBRARIES( exiv2lib ${LIBINTL_LIBRARIES} )
-+    TARGET_LINK_LIBRARIES( exiv2lib ${Intl_LIBRARIES} )
- ENDIF( EXIV2_ENABLE_NLS )
- IF( ICONV_FOUND )
index 57c1fef155856a32257a982ce38744483fa860e8..ab4dd4612a28109daf064a8ad368b5f18123fdc3 100644 (file)
@@ -1,38 +1,88 @@
 inherit cmake
 
 NAME="exiv2"
-VERSION=0.25
-RELEASE=2
+VERSION=0.27.3
+RELEASE=1
 CATEGORY="Libs"
 SUMMARY="Exiv, IPTC, and XMP image metadata library"
 DESCRIPTION="Exiv2 is a C++ library and a command line utility to access
 Exiv, IPTC, and XMP image metadata."
-HOMEPAGE="http://www.exiv2.org/"
-SRC_URI="http://www.exiv2.org/exiv2-${VERSION}.tar.gz"
+HOMEPAGE="https://www.exiv2.org/"
+
+################################
+## Source from a git repository
+################################
+GIT_REPO="https://github.com/Exiv2/exiv2"
+declare -A GIT_DATEHASH_BY_NAME=(
+  # git log --date=iso-strict --format='%cd/%H' -1
+  [0.27.3]=2020-06-30T15:58:12+01:00/194bb65ac568a5435874c9d9d73b1c8a68e4edec
+)
+
+REV_HASH="${GIT_DATEHASH_BY_NAME[${VERSION}]#*/}"
+REV_DATE="${GIT_DATEHASH_BY_NAME[${VERSION}]%/*}"
+REV_DATE_SHORT="${GIT_DATEHASH_BY_NAME[${VERSION}]%T*}"
+GIT_BASENAME="${GIT_REPO##*/}"
+SRC_URI="${GIT_REPO}/archive/${REV_HASH}.tar.gz"   # GitHub
+#SRC_URI="${GIT_REPO}/-/archive/${REV_HASH}/${GIT_BASENAME}-${REV_HASH}.tar.bz2" # GitLab
+SRC_DIR="${GIT_BASENAME}-${REV_HASH}"
+
+################################
+## Patches
+################################
 PATCH_URI="
-       http://pkgs.fedoraproject.org/cgit/exiv2.git/plain/exiv2-0.24-cmake_mandir.patch
-       0.25-find-libintl.patch
 "
 
-PKG_NAMES="${NAME} lib${NAME}_14 lib${NAME}-devel"
+################################
+## Requirements for building
+################################
+BUILD_REQUIRES="\
+  cmake\
+  pkg-config\
+  gettext\
+  libexpat-devel\
+  libiconv-devel\
+  libintl-devel\
+  zlib-devel\
+"
+
+################################
+## Requirements for testing
+################################
+BUILD_REQUIRES+="\
+  python3\
+"
+
+################################
+## ABI
+################################
+ABI=27
+
+################################
+## Packages
+################################
+PKG_NAMES="${NAME} lib${NAME}_${ABI} lib${NAME}-devel"
 exiv2_CATEGORY="Graphics"
 exiv2_SUMMARY=${SUMMARY/library/utility}
 exiv2_CONTENTS="--exclude=html usr/bin/*.exe usr/share/"
-libexiv2_14_CONTENTS="usr/bin/cygexiv2-14.dll"
+printf -v "libexiv2_${ABI}_CONTENTS" "%s" "usr/bin/cygexiv2-${ABI}.dll"
 libexiv2_devel_CONTENTS="usr/include/ usr/lib/"
 
-DIFF_EXCLUDES="exv_conf.h svn_version.h"
 
 # https://bugzilla.redhat.com/show_bug.cgi?id=888769
 CPPFLAGS+=" -DBanAllEntityUsage=1"
 
+CYGCMAKE_GENERATOR="Unix Makefiles"
+
 CYGCMAKE_ARGS="
-       -DEXIV2_ENABLE_BUILD_PO:BOOL=ON
-       -DEXIV2_ENABLE_BUILD_SAMPLES:BOOL=OFF
+  -DBUILD_SHARED_LIBS:BOOL=ON
+  -DEXIV2_ENABLE_NLS:BOOL=ON
+  -DEXIV2_BUILD_SAMPLES:BOOL=ON
 "
 
-src_install() {
-       cd ${B}
-       cyginstall
-       rm -f ${D}/usr/lib/pkgconfig/*.lsm
+################################
+## Tests
+################################
+src_test() {
+  cd ${B}
+  make tests
 }
This page took 0.025282 seconds and 5 git commands to generate.