aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Pastor <dg0yt@darc.de>2021-09-17 01:24:13 +0200
committerGitHub <noreply@github.com>2021-09-16 16:24:13 -0700
commitfbe07843a75a8577efcf77f35ce091ebb689bbf5 (patch)
tree08f6f9bd53bf019259e824fa4e7af29cfc69589e
parentb7aa43829152d23cec86a8b9292514ac35ca5d03 (diff)
downloadvcpkg-fbe07843a75a8577efcf77f35ce091ebb689bbf5.tar.gz
vcpkg-fbe07843a75a8577efcf77f35ce091ebb689bbf5.zip
[gettext] Remove `SUBPATH`, add iconv linking info (#20090)
* Replace SUBPATH argument * Add iconv to libintl link libraries * x-add-version * Fix tools build on mingw-dynamic * Update versions * [skip actions] Trigger CI
-rw-r--r--ports/gettext/Makefile5
-rw-r--r--ports/gettext/gettext-tools_woe32dll_gettextsrc-exports.c.patch14
-rw-r--r--ports/gettext/portfile.cmake7
-rw-r--r--ports/gettext/vcpkg-cmake-wrapper.cmake6
-rw-r--r--ports/gettext/vcpkg.json2
-rw-r--r--versions/baseline.json2
-rw-r--r--versions/g-/gettext.json5
7 files changed, 37 insertions, 4 deletions
diff --git a/ports/gettext/Makefile b/ports/gettext/Makefile
index 1c9a294c2..b2b36d2ab 100644
--- a/ports/gettext/Makefile
+++ b/ports/gettext/Makefile
@@ -6,6 +6,11 @@ install: install-gettext-runtime-intl install-gettext-runtime-po install-gettext
install: install-gettext-tools install-gettext-tools-gnulib install-gettext-tools-its install-gettext-tools-m4 install-gettext-tools-misc install-gettext-tools-po install-gettext-tools-projects install-gettext-tools-styles
install: install-libtextstyle
+build-intl:
+ $(MAKE) -C intl all
+install-intl:
+ $(MAKE) -C intl install
+
build-gettext-runtime-gnulib: build-gettext-runtime-intl
$(MAKE) -C gettext-runtime/gnulib-lib all
build-gettext-runtime-intl:
diff --git a/ports/gettext/gettext-tools_woe32dll_gettextsrc-exports.c.patch b/ports/gettext/gettext-tools_woe32dll_gettextsrc-exports.c.patch
new file mode 100644
index 000000000..1eedbecd2
--- /dev/null
+++ b/ports/gettext/gettext-tools_woe32dll_gettextsrc-exports.c.patch
@@ -0,0 +1,14 @@
+X-Git-Url: https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blobdiff_plain;f=gettext-tools%2Fwoe32dll%2Fgettextsrc-exports.c;h=6d760895961db57e013552b6b3f248bfa8eb17c2;hp=4477ae8d4b2e887592d4019432b91ea31b84ba59;hb=7cf68dffb2adb76375bfb0781e277510523a1f3e;hpb=3564f5f885544514bd2e345c36b74e5d91cad3e8
+
+diff --git a/gettext-tools/woe32dll/gettextsrc-exports.c b/gettext-tools/woe32dll/gettextsrc-exports.c
+index 4477ae8..6d76089 100644
+--- a/gettext-tools/woe32dll/gettextsrc-exports.c
++++ b/gettext-tools/woe32dll/gettextsrc-exports.c
+@@ -50,6 +50,7 @@ VARIABLE(formatstring_python)
+ VARIABLE(formatstring_python_brace)
+ VARIABLE(formatstring_qt)
+ VARIABLE(formatstring_qt_plural)
++VARIABLE(formatstring_ruby)
+ VARIABLE(formatstring_scheme)
+ VARIABLE(formatstring_sh)
+ VARIABLE(formatstring_smalltalk)
diff --git a/ports/gettext/portfile.cmake b/ports/gettext/portfile.cmake
index b4f7f845f..0c351d735 100644
--- a/ports/gettext/portfile.cmake
+++ b/ports/gettext/portfile.cmake
@@ -28,6 +28,7 @@ vcpkg_extract_source_archive_ex(
0003-Fix-win-unicode-paths.patch
rel_path.patch
android.patch
+ gettext-tools_woe32dll_gettextsrc-exports.c.patch
${PATCHES}
)
vcpkg_find_acquire_program(BISON)
@@ -87,7 +88,11 @@ function(build_libintl_only)
OPTIONS
${OPTIONS}
)
- vcpkg_install_make(SUBPATH "/intl")
+ vcpkg_install_make(
+ MAKEFILE "${CMAKE_CURRENT_LIST_DIR}/Makefile"
+ BUILD_TARGET build-intl
+ INSTALL_TARGET install-intl
+ )
endfunction()
if("tools" IN_LIST FEATURES)
diff --git a/ports/gettext/vcpkg-cmake-wrapper.cmake b/ports/gettext/vcpkg-cmake-wrapper.cmake
index c231bfee6..03bcb0569 100644
--- a/ports/gettext/vcpkg-cmake-wrapper.cmake
+++ b/ports/gettext/vcpkg-cmake-wrapper.cmake
@@ -7,4 +7,8 @@ if(Intl_FOUND AND Intl_LIBRARIES)
unset(Intl_LIBRARIES)
unset(Intl_LIBRARIES CACHE)
select_library_configurations(Intl)
-endif() \ No newline at end of file
+ find_package(Iconv) # Since CMake 3.11
+ if(Iconv_FOUND AND NOT Iconv_IS_BUILT_IN)
+ list(APPEND Intl_LIBRARIES ${Iconv_LIBRARIES})
+ endif()
+endif()
diff --git a/ports/gettext/vcpkg.json b/ports/gettext/vcpkg.json
index dc1cefc4e..bd1f1d4b6 100644
--- a/ports/gettext/vcpkg.json
+++ b/ports/gettext/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "gettext",
"version": "0.21",
- "port-version": 5,
+ "port-version": 6,
"description": "GNU gettext provides libintl and a set of tools to help produce multi-lingual messages.",
"homepage": "https://www.gnu.org/software/gettext/",
"dependencies": [
diff --git a/versions/baseline.json b/versions/baseline.json
index fbdad9a6b..b78df9feb 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -2350,7 +2350,7 @@
},
"gettext": {
"baseline": "0.21",
- "port-version": 5
+ "port-version": 6
},
"gettimeofday": {
"baseline": "2017-10-14",
diff --git a/versions/g-/gettext.json b/versions/g-/gettext.json
index afcf5f513..adb7fea98 100644
--- a/versions/g-/gettext.json
+++ b/versions/g-/gettext.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "72394a1e7b0ea6333d78849f864c4b7bc8c7e8dc",
+ "version": "0.21",
+ "port-version": 6
+ },
+ {
"git-tree": "d1089dfcf335a94ca47c5b918c56a7ab6fc0ae92",
"version": "0.21",
"port-version": 5