diff options
author | obache <obache@pkgsrc.org> | 2013-12-05 11:42:12 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-12-05 11:42:12 +0000 |
commit | af71a9706d57cefa23dfd44e6974be8dbd58bcce (patch) | |
tree | a58c56c22e0eeab507e6d3bbe20f63fab5e564a4 /emulators/suse131_fontconfig | |
parent | 4fc0c292198959bc7a7b94d460f2d85b5fbcf46b (diff) | |
download | pkgsrc-af71a9706d57cefa23dfd44e6974be8dbd58bcce.tar.gz |
Added openSUSE 13.1 packages, provides a number of components for a
openSUSE-based Linux binary emulation environment.
Diffstat (limited to 'emulators/suse131_fontconfig')
-rw-r--r-- | emulators/suse131_fontconfig/DESCR | 6 | ||||
-rw-r--r-- | emulators/suse131_fontconfig/Makefile | 25 | ||||
-rw-r--r-- | emulators/suse131_fontconfig/PLIST | 2 | ||||
-rw-r--r-- | emulators/suse131_fontconfig/distinfo | 8 | ||||
-rw-r--r-- | emulators/suse131_fontconfig/files/generate.awk | 32 | ||||
-rw-r--r-- | emulators/suse131_fontconfig/files/local.conf.in | 11 |
6 files changed, 84 insertions, 0 deletions
diff --git a/emulators/suse131_fontconfig/DESCR b/emulators/suse131_fontconfig/DESCR new file mode 100644 index 00000000000..a15e242c788 --- /dev/null +++ b/emulators/suse131_fontconfig/DESCR @@ -0,0 +1,6 @@ +Linux compatibility package based on the openSUSE Linux distribution. +Please visit http://www.opensuse.org/ for more information about openSUSE +Linux. + +This package supports running ELF binaries linked with glibc2 that +require fontconfig shared libraries. diff --git a/emulators/suse131_fontconfig/Makefile b/emulators/suse131_fontconfig/Makefile new file mode 100644 index 00000000000..38a2550684b --- /dev/null +++ b/emulators/suse131_fontconfig/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2013/12/05 11:42:15 obache Exp $ + +DISTNAME= suse_fontconfig-${SUSE_VERSION} +CATEGORIES= emulators +RPMPKGS+= fontconfig-2.11.0-1.1.${SUSE_ARCH} + +MAINTAINER= pkgsrc-users@NetBSD.org +COMMENT= Linux compatibility package for fontconfig + +EMUL_MODULES.linux= expat freetype2 + +.include "../../emulators/suse131_linux/Makefile.common" + +PLIST_SRC= ${PKGDIR}/PLIST ${RPM2PKG_PLIST} + +do-build: + ${SETENV} LOCALBASE=${LOCALBASE:Q} X11BASE=${X11BASE:Q} \ + ${AWK} -f ${FILESDIR}/generate.awk ${FILESDIR}/local.conf.in \ + > ${WRKSRC}/local.conf + +post-install: + ${INSTALL_DATA} ${WRKSRC}/local.conf \ + ${DESTDIR}${PREFIX}/${EMULSUBDIR}/etc/fonts/local.conf + +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/suse131_fontconfig/PLIST b/emulators/suse131_fontconfig/PLIST new file mode 100644 index 00000000000..322f2cf12b8 --- /dev/null +++ b/emulators/suse131_fontconfig/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2013/12/05 11:42:15 obache Exp $ +${EMULSUBDIRSLASH}etc/fonts/local.conf diff --git a/emulators/suse131_fontconfig/distinfo b/emulators/suse131_fontconfig/distinfo new file mode 100644 index 00000000000..c32c79c88da --- /dev/null +++ b/emulators/suse131_fontconfig/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2013/12/05 11:42:15 obache Exp $ + +SHA1 (suse131/fontconfig-2.11.0-1.1.i586.rpm) = 83e5e25938dc54cff86b174221f505e6221a9767 +RMD160 (suse131/fontconfig-2.11.0-1.1.i586.rpm) = 0c98c323d0e8b338f2daab3d5e49b0627321c961 +Size (suse131/fontconfig-2.11.0-1.1.i586.rpm) = 355260 bytes +SHA1 (suse131/fontconfig-2.11.0-1.1.x86_64.rpm) = b11e01a1a6d70cce629f5fccb99ed010d8d1cbab +RMD160 (suse131/fontconfig-2.11.0-1.1.x86_64.rpm) = b7e5ab55af704794ba6c3b29d69f4c8102f677fa +Size (suse131/fontconfig-2.11.0-1.1.x86_64.rpm) = 355310 bytes diff --git a/emulators/suse131_fontconfig/files/generate.awk b/emulators/suse131_fontconfig/files/generate.awk new file mode 100644 index 00000000000..c98d1347d1e --- /dev/null +++ b/emulators/suse131_fontconfig/files/generate.awk @@ -0,0 +1,32 @@ +# $NetBSD: generate.awk,v 1.1 2013/12/05 11:42:15 obache Exp $ +# +# AWK script to replace @FONTDIR_ENTRIES@ with a list of <dir></dir> +# entries taken from the "entries" array. We do variable replacement +# for ${LOCALBASE} and ${X11BASE} using the values of LOCALBASE and +# X11BASE that are passed to the script. +# + +BEGIN { + entries[0] = "${X11BASE}/lib/X11/fonts" + entries[1] = "${LOCALBASE}/lib/X11/fonts" + entries[2] = "${LOCALBASE}/share/fonts" + entries[3] = "${LOCALBASE}/java/sun-6/lib/fonts" + entries[4] = "${LOCALBASE}/Acrobat7/Resource/CIDFont" + entries[5] = "${LOCALBASE}/Acrobat8/Adobe/Reader8/Resource/Font" + entries[6] = "${LOCALBASE}/Acrobat9/Adobe/Reader9/Resource/Font" + num_entries = 7 + + LOCALBASE = ENVIRON["LOCALBASE"] ? ENVIRON["LOCALBASE"] : "/usr/pkg" + X11BASE = ENVIRON["X11BASE"] ? ENVIRON["X11BASE"] : "/usr/X11R6" +} + +/^@FONTDIR_ENTRIES@/ { + for (i = 0; i < num_entries; i++) { + entry = entries[i] + sub("[$]{LOCALBASE}", LOCALBASE, entry) + sub("[$]{X11BASE}", X11BASE, entry) + print " <dir>" entry "</dir>" + } + next +} +{ print } diff --git a/emulators/suse131_fontconfig/files/local.conf.in b/emulators/suse131_fontconfig/files/local.conf.in new file mode 100644 index 00000000000..4e0d7c52674 --- /dev/null +++ b/emulators/suse131_fontconfig/files/local.conf.in @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<!-- $NetBSD: local.conf.in,v 1.1 2013/12/05 11:42:15 obache Exp $ --> +<!-- /etc/fonts/fonts.conf file to configure system font access --> +<fontconfig> + +<!-- Local font directory list --> + +@FONTDIR_ENTRIES@ + +</fontconfig> |