exiv2 0.27.4
authorLemures Lemniscati <lemures.lemniscati@gmail.com>
Sun, 25 Jul 2021 14:52:38 +0000 (23:52 +0900)
committerLemures Lemniscati <lemures.lemniscati@gmail.com>
Sun, 25 Jul 2021 14:52:38 +0000 (23:52 +0900)
0.27.4-nls-test.patch [new file with mode: 0644]
exiv2.cygport

diff --git a/0.27.4-nls-test.patch b/0.27.4-nls-test.patch
new file mode 100644 (file)
index 0000000..b2020bf
--- /dev/null
@@ -0,0 +1,23 @@
+--- origsrc/exiv2-0.27.4/tests/bash_tests/testcases.py 2021-06-15 22:57:33.000000000 +0900
++++ src/exiv2-0.27.4/tests/bash_tests/testcases.py
+@@ -885,9 +885,9 @@ set Exif.Photo.DateTimeDigitized 2020:05
+         else:
+             LANG = 'LANG'
+-        share_dir    = os.path.normpath(os.path.join(BT.Config.bin_dir, '..', 'share2'))
++        share_dir    = os.path.normpath(os.path.join(BT.Config.bin_dir, '..', 'share'))
+         os.makedirs(share_dir, exist_ok=True)
+-        locale_dir   = '/usr/local/share/locale'
++        locale_dir   = '../../../../inst/usr/share/locale'
+         if os.path.isdir(locale_dir) and os.path.isdir(share_dir):
+             BT.cp(locale_dir, share_dir)
+         else:
+@@ -895,7 +895,7 @@ set Exif.Photo.DateTimeDigitized 2020:05
+         # The above part is checking the environment, and the following part is executing the actual test
+         out      = BT.Output()
+-        for language in ['fr_FR', 'es_ES']:
++        for language in ['fr_FR.utf8', 'es_ES.utf8']:
+             e    = BT.Executer(cmd='exiv2', extra_env={'LC_ALL': language, LANG: language}, assert_returncode=[1], decode_output=False)
+             out += e.stdout.split(b'\n')[0].decode()
+         BT.reportTest('nls-test', out,forgive=True)
index 2371eb2aab040b460ad30354bea80d73c9cac4cb..ba708086f43ccaa86edc53b0e5a0517c43c54184 100644 (file)
@@ -1,7 +1,7 @@
 inherit cmake
 
 NAME="exiv2"
-VERSION=0.27.3
+VERSION=0.27.4
 RELEASE=1
 CATEGORY="Libs"
 SUMMARY="Exiv, IPTC, and XMP image metadata library"
@@ -15,6 +15,7 @@ HOMEPAGE="https://www.exiv2.org/"
 GIT_REPO="https://github.com/Exiv2/exiv2"
 declare -A GIT_DATEHASH_BY_NAME=(
   # git log --date=iso-strict --format='%cd/%H' -1
+  [0.27.4]=2021-06-15T14:57:33+01:00/v0.27.4
   [0.27.3]=2020-06-30T15:58:12+01:00/v0.27.3
 )
 REV_HASH="${GIT_DATEHASH_BY_NAME[${VERSION}]#*/}"
@@ -28,6 +29,7 @@ SRC_DIR="${GIT_BASENAME}-${REV_HASH#v}"
 ## Patches
 ################################
 PATCH_URI="
+  0.27.4-nls-test.patch
 "
 
 ################################
@@ -36,7 +38,7 @@ PATCH_URI="
 BUILD_REQUIRES="\
   cmake\
   pkg-config\
-  gettext\
+  gettext-devel\
   libexpat-devel\
   libiconv-devel\
   libintl-devel\
This page took 0.049399 seconds and 5 git commands to generate.