libuninameslist 20211114 master playground 20211114-1
authorLemures Lemniscati <lemures.lemniscati@gmail.com>
Mon, 22 Nov 2021 22:21:53 +0000 (07:21 +0900)
committerLemures Lemniscati <lemures.lemniscati@gmail.com>
Mon, 22 Nov 2021 22:21:53 +0000 (07:21 +0900)
Release Notes:
  https://github.com/fontforge/libuninameslist/releases/tag/20211114

20091231-vpath.patch [deleted file]
libuninameslist.cygport

diff --git a/20091231-vpath.patch b/20091231-vpath.patch
deleted file mode 100644 (file)
index e25c7a7..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- origsrc/libuninameslist/Makefile.in        2009-12-31 14:50:23.000000000 -0600
-+++ src/libuninameslist/Makefile.in    2010-03-02 19:42:15.521967200 -0600
-@@ -42,7 +42,7 @@ install: both
-       $(LIBTOOL) --mode=install $(INSTALL) -c libuninameslist-fr.la $(DESTDIR)$(libdir)/libuninameslist-fr.la
-       $(LIBTOOL) --finish $(DESTDIR)$(libdir)
-       mkdir -p $(DESTDIR)$(incdir)
--      $(INSTALL_DATA) nameslist.h $(DESTDIR)$(incdir)/uninameslist.h
-+      $(INSTALL_DATA) $(srcdir)/nameslist.h $(DESTDIR)$(incdir)/uninameslist.h
- clean:
-       -rm -f *.lo *.o *.la
index 353ce88d620f84cd226c8a099998ac4d90ae5fd2..365b9341d5250b9f515c785ebb58c8f08b6d856e 100644 (file)
@@ -1,6 +1,6 @@
 NAME="libuninameslist"
-VERSION=20091231
-RELEASE=2
+VERSION=20211114
+RELEASE=1
 CATEGORY="Libs"
 SUMMARY="Unicode NamesList library"
 DESCRIPTION="The Unicode consortium provides a file containing annotations on
@@ -8,14 +8,71 @@ many unicode characters. This library contains a compiled version of this file
 so that programs can access these data easily. The library contains a very
 large (sparse) array with one entry for each unicode code point. The library
 also contains a (much smaller) list of all the Unicode blocks."
-HOMEPAGE="http://libuninameslist.sourceforge.net/"
-SRC_URI="mirror://sourceforge/libuninameslist/${NAME}-${VERSION}.tar.bz2"
-SRC_DIR=${NAME}
-PATCH_URI="20091231-vpath.patch"
+HOMEPAGE="https://github.com/fontforge/libuninameslist/releases"
 
-PKG_NAMES="${NAME}0 ${NAME}-devel"
-libuninameslist0_CONTENTS="usr/bin/*-0.dll"
-libuninameslist_devel_CONTENTS="usr/include/ usr/lib/ usr/share/doc/"
+################################
+## Settings for 'download'
+################################
+# Source from a git repository
+GIT_REPO="https://github.com/fontforge/libuninameslist"
+declare -A GIT_DATEHASH_BY_NAME=(
+  # git log --date=iso-strict --format='%cd/%H' -1
+  [20211114]=2021-11-14T00:36:12-08:00/20211114
+  [20210917]=2021-09-17T15:45:15-07:00/20210917
+  [20200413p3]=2020-06-26T09:11:42-07:00/5d26f1f514f7fd712d8e8faca0202598b0f0d7d9
+  [20200413]=2020-04-13T12:13:13-07:00/20200413
+)
+REV_HASH="${GIT_DATEHASH_BY_NAME[${VERSION}]#*/}"
+REV_DATE="${GIT_DATEHASH_BY_NAME[${VERSION}]%%/*}"
+REV_DATE_SHORT="${REV_DATE%%T*}"
+GIT_BASENAME="${GIT_REPO##*/}"
+SRC_URI="${GIT_REPO}/archive/${REV_HASH}/${GIT_BASENAME}-${VERSION}.tar.gz"
+SRC_DIR="${GIT_BASENAME}-${REV_HASH#v}"
 
-# copy of old libtool macros
+################################
+## Settings for 'prep'
+################################
+# Apply patches whose filenames are in a default style of 'git format-patch'.
+PATCH_URI=$(\
+  find -maxdepth 1 -type f -name '[0-9][0-9][0-9][0-9]-*.patch' \
+  | sort \
+)
+# And then, additional patches, if any.
+PATCH_URI+="
+"
+# A list of files to be deleted immediately upon unpacking sources
+# (cf. /usr/share/cygport/lib/src_prep.cygpart).
 DISTCLEANFILES="aclocal.m4"
+
+################################
+## Settings for 'compile'
+################################
+# Any options to be passed to 'make' through 'cygmake'
+# (cf. /usr/share/cygport/lib/src_compile.cygpart).
+MAKEOPTS="-j1"  # Avoid running multiple jobs in parallel.
+
+# Additional flags to be passed to 'configure' through 'cygconf'
+# (cf. /usr/share/cygport/cygclass/autotools.cygclass).
+CYGCONF_ARGS="--enable-frenchlib"
+
+################################
+## Settings for 'package'
+################################
+ABI=1
+PKG_NAMES="${PN}${ABI} ${PN}-devel"
+
+printf -v "${PN}${ABI}_CATEGORY" "%s" "${CATEGORY}"
+printf -v "${PN}${ABI}_SUMMARY"  "%s" "${SUMMARY} (runtime)"
+# Runtime libraries only.
+printf -v "${PN}${ABI}_CONTENTS" "%s" "\
+  usr/bin/ \
+"
+
+printf -v "${PN}_devel_CATEGORY" "%s" "Devel ${CATEGORY}"
+printf -v "${PN}_devel_SUMMARY"  "%s" "${SUMMARY} (development)"
+printf -v "${PN}_devel_CONTENTS" "%s" "\
+  usr/include/ \
+  usr/lib/ \
+  usr/share/doc/ \
+  usr/share/man/ \
+"
This page took 0.04869 seconds and 5 git commands to generate.