early-access version 2853
This commit is contained in:
18
externals/vcpkg/ports/libunistring/copyright
vendored
Executable file
18
externals/vcpkg/ports/libunistring/copyright
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
The libunistring library and its header files are dual-licensed under
|
||||
"the GNU LGPLv3+ or the GNU GPLv2". This means, you can use it under either
|
||||
- the terms of the GNU Lesser General Public License (LGPL) version 3 or
|
||||
(at your option) any later version, or
|
||||
- the terms of the GNU General Public License (GPL) version 2, or
|
||||
- the same dual license "the GNU LGPLv3+ or the GNU GPLv2".
|
||||
|
||||
You find the GNU LGPL version 3 in the file COPYING.LIB. This license is
|
||||
based on the GNU GPL version 3, see file COPYING.
|
||||
|
||||
You can find the GNU GPL version 2 at
|
||||
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>.
|
||||
|
||||
Note: This dual license makes it possible for the libunistring library
|
||||
to be used by packages under GPLv2 or GPLv2+ licenses, in particular. See
|
||||
the table in <https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility>.
|
||||
|
||||
The documentation is under another license; see in the documentation.
|
||||
53
externals/vcpkg/ports/libunistring/libunistring-msys-msvc-build.patch
vendored
Executable file
53
externals/vcpkg/ports/libunistring/libunistring-msys-msvc-build.patch
vendored
Executable file
@@ -0,0 +1,53 @@
|
||||
--- /dev/null
|
||||
+++ b/build-aux/dumpbin-to-nm.awk
|
||||
@@ -0,0 +1,14 @@
|
||||
+{last_section=section; section=$ 3};
|
||||
+/^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};
|
||||
+/Section length .*#relocs.*(pick any)/{hide[last_section]=1};
|
||||
+/^ *Symbol name *: /{split($ 0,sn,":"); si=substr(sn[2],2)};
|
||||
+/^ *Type *: code/{print "T",si,substr(si,length(prfx))};
|
||||
+/^ *Type *: data/{print "I",si,substr(si,length(prfx))};
|
||||
+$ 0!~/External *\|/{next};
|
||||
+$ 0~/__local_stdio_printf_options/{next};
|
||||
+/ 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};
|
||||
+{if(hide[section]) next};
|
||||
+{f="D"}; $ 0~/\(\).*\|/{f="T"};
|
||||
+{split($ 0,a,/\||\r/); split(a[2],s)};
|
||||
+s[1]~/^[@?]/{print f,s[1],s[1]; next};
|
||||
+s[1]~prfx {split(s[1],t,"@"); print f,t[1],substr(t[1],length(prfx))}
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -10274,21 +10274,7 @@
|
||||
# D for any global variable and I for any imported variable.
|
||||
# Also find C++ and __fastcall symbols from MSVC++,
|
||||
# which start with @ or ?.
|
||||
- lt_cv_sys_global_symbol_pipe="$AWK '"\
|
||||
-" {last_section=section; section=\$ 3};"\
|
||||
-" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
||||
-" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
||||
-" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
|
||||
-" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
|
||||
-" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
|
||||
-" \$ 0!~/External *\|/{next};"\
|
||||
-" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
||||
-" {if(hide[section]) next};"\
|
||||
-" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
|
||||
-" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
|
||||
-" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
|
||||
-" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
|
||||
-" ' prfx=^$ac_symprfx"
|
||||
+ lt_cv_sys_global_symbol_pipe="$AWK -f '$(realpath "$(dirname $0)")/build-aux/dumpbin-to-nm.awk' prfx=^$ac_symprfx"
|
||||
else
|
||||
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
||||
fi
|
||||
--- a/lib/Makefile.in
|
||||
+++ b/lib/Makefile.in
|
||||
@@ -5934,7 +5938,7 @@
|
||||
test -f $$sf || sf=$(srcdir)/$$sf; \
|
||||
of=`echo "$$f" | sed -e 's,^.*/,,' -e 's,\\.[^.]*$$,,'`.$(OBJEXT); \
|
||||
echo "$(COMPILE) -c $$sf" 1>&6; \
|
||||
- $(COMPILE) -c $$sf || { rm -f config.h; exit 1; }; \
|
||||
+ $(COMPILE) -c $$sf 1>&6 || { rm -f config.h; exit 1; }; \
|
||||
sh ./exported.sh $$of 1>&5; \
|
||||
rm -f $$of `echo "$$of" | sed -e 's,\\.$(OBJEXT)$$,.lo,'`; \
|
||||
;; \
|
||||
34
externals/vcpkg/ports/libunistring/portfile.cmake
vendored
Executable file
34
externals/vcpkg/ports/libunistring/portfile.cmake
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
set(LIBUNISTRING_VERSION 0.9.10)
|
||||
set(LIBUNISTRING_FILENAME libunistring-${LIBUNISTRING_VERSION}.tar.gz)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS
|
||||
"https://ftp.gnu.org/gnu/libunistring/${LIBUNISTRING_FILENAME}"
|
||||
"https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/libunistring/${LIBUNISTRING_FILENAME}"
|
||||
FILENAME "${LIBUNISTRING_FILENAME}"
|
||||
SHA512 690082732fbbd47ab4ffbd6f21d85afece0f8e2ded24982f949f4ae52bf0a981b75ea9bc14ab289e0954cde07f31a7a4c2bb65615a8eb5b2bfa65720310b6fc9
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
REF ${LIBUNISTRING_VERSION}
|
||||
PATCHES libunistring-msys-msvc-build.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
COPY_SOURCE
|
||||
USE_WRAPPERS
|
||||
OPTIONS
|
||||
"--with-libiconv-prefix=${CURRENT_INSTALLED_DIR}"
|
||||
)
|
||||
|
||||
vcpkg_install_make()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
# copyright excerpt from README, to cover dual license under "LGPLv3+ or GPLv2".
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING.LIB" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
11
externals/vcpkg/ports/libunistring/vcpkg.json
vendored
Executable file
11
externals/vcpkg/ports/libunistring/vcpkg.json
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "libunistring",
|
||||
"version": "0.9.10",
|
||||
"port-version": 3,
|
||||
"description": "GNU libunistring provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.",
|
||||
"homepage": "https://www.gnu.org/software/libunistring/",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"libiconv"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user