,omgw=w64=t1ito;s - 1.41

A collection of simple Type 1 font manipulation programs
This commit is contained in:
JPeterMugaas
2019-05-15 05:37:46 -04:00
parent cf8b0df866
commit 9b68efb9db
3 changed files with 121 additions and 0 deletions

22
mingw-w64-t1utils/LICENSE Normal file
View File

@@ -0,0 +1,22 @@
The README file includes the following notices:
Changes since version 1.2 (c) 1998-2000 Eddie Kohler, under the
same redistribution copyright as I. Lee Hetherington's. See below
for I. Lee Hetherington's original README from 1992, updated
slightly for today's t1utils.
Eddie Kohler
eddietwo@lcs.mit.edu
Copyright (c) 1992 by I. Lee Hetherington, all rights reserved.
Permission is hereby granted to use, modify, and distribute this
program for any purpose provided this copyright notice and the one
below remain intact.
Note that these tools should not be used to illegally copy type-1
font programs. Typeface design is an intricate art that should be
rewarded.
I. Lee Hetherington
ilh@lcs.mit.edu

View File

@@ -0,0 +1,68 @@
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
_realname=t1utils
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.41
pkgrel=1
pkgdesc="A collection of simple Type 1 font manipulation programs (mingw-w64)"
arch=('any')
url="http://www.lcdf.org/~eddietwo/type/#t1utils"
license=('custom')
source=("https://www.lcdf.org/~eddietwo/type/${_realname}-$pkgver.tar.gz"
"memmem-decl.patch"
"LICENSE")
sha512sums=('b532d3af38a73903a512eb1297ba7510747dcbe8362acc4a0f20f2a3c786d82d8f5b22997ed3867114f33153a34cdd71c4c8e6a093db3cecc3825b6e4725a00b'
'573a15133e8227100820039aaf5dea12d038674dd486510a38647e9f500c9de2c16034d99c8b26444f6c7253fe788833aa6dbd3f46be389bc1ca1b031deb51c8'
'82dbc206391a9f9116038be74360455c960ddb76e35fdeb123044f74c74014223c3b35d7f1894ae7224c7a9e091acc1ff00df2a43d38a856b4f75988fb4dbd3e')
# Helper macros to help make tasks easier #
apply_patch_with_msg() {
for _patch in "$@"
do
msg2 "Applying $_patch"
patch -Nbp1 -i "${srcdir}/$_patch"
done
}
del_file_exists() {
for _fname in "$@"
do
if [ -f $_fname ]; then
rm -rf $_fname
fi
done
}
# =========================================== #
prepare() {
cd ${srcdir}/${_realname}-${pkgver}
# FS#57999 and https://github.com/kohler/t1utils/issues/8
apply_patch_with_msg "memmem-decl.patch"
autoreconf -fiv
}
build() {
cd "${srcdir}"/${_realname}-${pkgver}
[[ -d "${srcdir}"/build-${CARCH} ]] && rm -rf "${srcdir}"/build-${CARCH}
mkdir -p "${srcdir}"/build-${CARCH} && cd "${srcdir}"/build-${CARCH}
../${_realname}-${pkgver}/configure \
--prefix=${MINGW_PREFIX} \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--target=${MINGW_CHOST}
make
}
check() {
cd "${srcdir}"/build-${CARCH}
make check
}
package() {
cd "${srcdir}"/build-${CARCH}
make install DESTDIR="${pkgdir}"
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
}

View File

@@ -0,0 +1,31 @@
From 3f1ddda424353f0f926dd28efa47b0ac61556ce8 Mon Sep 17 00:00:00 2001
From: Eddie Kohler <ekohler@gmail.com>
Date: Wed, 16 Aug 2017 12:37:34 -0400
Subject: [PATCH] Check for memmem declaration; sometimes it is not declared by
default.
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 5b4e3ff..b4dc4fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,7 @@ dnl strerror()?
dnl
AC_REPLACE_FUNCS([strerror memmem])
+AC_CHECK_DECLS([memmem])
dnl
@@ -88,7 +89,7 @@ char* strerror(int errno);
#endif
/* Prototype memmem if we don't have it. */
-#if !HAVE_MEMMEM
+#if !HAVE_MEMMEM || !HAVE_DECL_MEMMEM
void* memmem(const void* haystack, size_t haystack_len,
const void* needle, size_t needle_len);
#endif