aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-09-05 03:20:38 +0800
committerPhil Christensen <philc@microsoft.com>2019-09-04 12:20:38 -0700
commitba34f17814a865ca292865d37643d52b12fe0e92 (patch)
treeba721cb2fa2496c3bee2625f935540b48fb2f533
parenta3e8197f2d7fa043f5c0dc5ccac3446fac6ebac2 (diff)
downloadvcpkg-ba34f17814a865ca292865d37643d52b12fe0e92.tar.gz
vcpkg-ba34f17814a865ca292865d37643d52b12fe0e92.zip
[gettext]Improve gettext on Linux. (#7990)
-rw-r--r--ports/gettext/CONTROL2
-rw-r--r--ports/gettext/portfile.cmake3
2 files changed, 4 insertions, 1 deletions
diff --git a/ports/gettext/CONTROL b/ports/gettext/CONTROL
index a6adfefc6..1816f8b76 100644
--- a/ports/gettext/CONTROL
+++ b/ports/gettext/CONTROL
@@ -1,5 +1,5 @@
Source: gettext
-Version: 0.19-10
+Version: 0.19-11
Homepage: https://www.gnu.org/software/gettext/
Description: The GNU gettext utilities are a set of tools that provides a framework to help other GNU packages produce multi-lingual messages. Provides libintl.
Build-Depends: libiconv
diff --git a/ports/gettext/portfile.cmake b/ports/gettext/portfile.cmake
index d7283cc90..a9ab3d2e7 100644
--- a/ports/gettext/portfile.cmake
+++ b/ports/gettext/portfile.cmake
@@ -1,5 +1,8 @@
if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+ if (NOT EXISTS "/usr/include/libintl.h")
+ message(FATAL_ERROR "Please use command \"sudo apt-get install gettext\" to install gettext on linux.")
+ endif()
file(COPY ${CMAKE_CURRENT_LIST_DIR}/unofficial-gettext-config.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/unofficial-gettext)
return()
endif()