pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/suse121_fontconfig Import suse_fontconfig-12...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e328c9ad725e
branches:  trunk
changeset: 601431:e328c9ad725e
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed Mar 21 13:36:25 2012 +0000

description:
Import suse_fontconfig-12.1 as emulators/suse121_fontconfig.

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.

diffstat:

 emulators/suse121_fontconfig/DESCR               |   6 ++++
 emulators/suse121_fontconfig/Makefile            |  25 ++++++++++++++++++
 emulators/suse121_fontconfig/PLIST               |   2 +
 emulators/suse121_fontconfig/distinfo            |   8 ++++++
 emulators/suse121_fontconfig/files/generate.awk  |  32 ++++++++++++++++++++++++
 emulators/suse121_fontconfig/files/local.conf.in |  11 ++++++++
 6 files changed, 84 insertions(+), 0 deletions(-)

diffs (108 lines):

diff -r 5a473d55705f -r e328c9ad725e emulators/suse121_fontconfig/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_fontconfig/DESCR        Wed Mar 21 13:36:25 2012 +0000
@@ -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 -r 5a473d55705f -r e328c9ad725e emulators/suse121_fontconfig/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_fontconfig/Makefile     Wed Mar 21 13:36:25 2012 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/03/21 13:36:25 obache Exp $
+
+DISTNAME=      suse_fontconfig-${SUSE_VERSION}
+CATEGORIES=    emulators
+RPMPKGS+=      fontconfig-2.8.0-24.14.2.${SUSE_ARCH}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Linux compatibility package for fontconfig
+
+EMUL_MODULES.linux=    expat freetype2
+
+.include "../../emulators/suse121_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 -r 5a473d55705f -r e328c9ad725e emulators/suse121_fontconfig/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_fontconfig/PLIST        Wed Mar 21 13:36:25 2012 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/03/21 13:36:25 obache Exp $
+${EMULSUBDIRSLASH}etc/fonts/local.conf
diff -r 5a473d55705f -r e328c9ad725e emulators/suse121_fontconfig/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_fontconfig/distinfo     Wed Mar 21 13:36:25 2012 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/03/21 13:36:25 obache Exp $
+
+SHA1 (suse121/fontconfig-2.8.0-24.14.2.i586.rpm) = 35e4420d419122463af1b5ea91b42bc0e4c32469
+RMD160 (suse121/fontconfig-2.8.0-24.14.2.i586.rpm) = 2b5812ee7ae9fc9270accd427e5a4aaa3b0f4516
+Size (suse121/fontconfig-2.8.0-24.14.2.i586.rpm) = 291314 bytes
+SHA1 (suse121/fontconfig-2.8.0-24.14.2.x86_64.rpm) = 64108119625a325161bd0a871a97901264b8d716
+RMD160 (suse121/fontconfig-2.8.0-24.14.2.x86_64.rpm) = 4dca21055d2b31cc9e3ae735d977fdae6705ce53
+Size (suse121/fontconfig-2.8.0-24.14.2.x86_64.rpm) = 290860 bytes
diff -r 5a473d55705f -r e328c9ad725e emulators/suse121_fontconfig/files/generate.awk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_fontconfig/files/generate.awk   Wed Mar 21 13:36:25 2012 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: generate.awk,v 1.1.1.1 2012/03/21 13:36:25 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 -r 5a473d55705f -r e328c9ad725e emulators/suse121_fontconfig/files/local.conf.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_fontconfig/files/local.conf.in  Wed Mar 21 13:36:25 2012 +0000
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- $NetBSD: local.conf.in,v 1.1.1.1 2012/03/21 13:36:25 obache Exp $ -->
+<!-- /etc/fonts/fonts.conf file to configure system font access -->
+<fontconfig>
+
+<!-- Local font directory list -->
+
+@FONTDIR_ENTRIES@
+
+</fontconfig>



Home | Main Index | Thread Index | Old Index