From owner-freebsd-ports Wed Nov 1 8: 0:15 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2E28537B4E5 for ; Wed, 1 Nov 2000 08:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA82873; Wed, 1 Nov 2000 08:00:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freebsd.sinica.edu.tw (freebsd.sinica.edu.tw [140.109.13.51]) by hub.freebsd.org (Postfix) with ESMTP id 1F30037B4C5 for ; Wed, 1 Nov 2000 07:51:35 -0800 (PST) Received: (from keith@localhost) by freebsd.sinica.edu.tw (8.9.3/8.9.3) id XAA26888; Wed, 1 Nov 2000 23:53:55 +0800 (CST) (envelope-from keith) Message-Id: <200011011553.XAA26888@freebsd.sinica.edu.tw> Date: Wed, 1 Nov 2000 23:53:55 +0800 (CST) From: keith@freebsd.sinica.edu.tw Reply-To: keith@freebsd.sinica.edu.tw To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/22479: New port: chinese/XFree86-aoutlibs Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22479 >Category: ports >Synopsis: New port: chinese/XFree86-aoutlibs >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 01 08:00:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Jing-Tang Keith Jang >Release: FreeBSD 4.0-20000406-STABLE i386 >Organization: >Environment: Tested under both 4-stable and 5-current. >Description: x11/XFree86-aoutlibs doesn't support Big5 encoding, so Big5 users can't input Chinese using XIM in aout applications like Netscape. This port installs 3.3.6 aout library binaries distributed by XFree86, which solves the problem Since x11/XFree86/scripts/configure mentioned that Netscape works best with older 3.3.3 aout libs, it seems reasonable not to upgrade x11/XFree86-aoutlibs, but create another chinese/XFree86-aoutlibs port. >How-To-Repeat: Please commit the following port, thanks. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # XFree86-aoutlibs # XFree86-aoutlibs/files # XFree86-aoutlibs/files/INSTALL.in # XFree86-aoutlibs/distinfo # XFree86-aoutlibs/pkg-descr # XFree86-aoutlibs/Makefile # XFree86-aoutlibs/pkg-req # XFree86-aoutlibs/pkg-plist # XFree86-aoutlibs/pkg-comment # echo c - XFree86-aoutlibs mkdir -p XFree86-aoutlibs > /dev/null 2>&1 echo c - XFree86-aoutlibs/files mkdir -p XFree86-aoutlibs/files > /dev/null 2>&1 echo x - XFree86-aoutlibs/files/INSTALL.in sed 's/^X//' >XFree86-aoutlibs/files/INSTALL.in << 'END-of-XFree86-aoutlibs/files/INSTALL.in' X#!/bin/sh X# an installation script for zh-XFree86-aoutlibs X Xif [ "$2" != "PRE-INSTALL" ]; then X exit 0 Xfi X Xif [ ! -f @PREFIX@/lib/aout/zh-XFree86-aoutlibs-3.3.6 ] && \ X [ -f @PREFIX@/lib/aout/libX11.so.6.1 ]; then X echo ---------------------------------------------------- X echo You have XFree86-aoutlibs installed! X echo Please remove it before install zh-XFree86-aoutlibs. X echo ---------------------------------------------------- X exit 1 Xfi X Xexit 0 END-of-XFree86-aoutlibs/files/INSTALL.in echo x - XFree86-aoutlibs/distinfo sed 's/^X//' >XFree86-aoutlibs/distinfo << 'END-of-XFree86-aoutlibs/distinfo' XMD5 (Xbin336aout.tgz) = a788bf7af2732eaf2a4a71550680f590 END-of-XFree86-aoutlibs/distinfo echo x - XFree86-aoutlibs/pkg-descr sed 's/^X//' >XFree86-aoutlibs/pkg-descr << 'END-of-XFree86-aoutlibs/pkg-descr' XThis is a compatability package for the XFree86 a.out format libraries. X XIt is only needed for ports which use X and are compiled in a.out format, Xsuch as Nescape. Long live Mozilla... END-of-XFree86-aoutlibs/pkg-descr echo x - XFree86-aoutlibs/Makefile sed 's/^X//' >XFree86-aoutlibs/Makefile << 'END-of-XFree86-aoutlibs/Makefile' X# New ports collection makefile for: XFree86 3.3.6 aout libs X# Date created: 31 Oct 2000 X# Whom: Jing-Tang Keith Jang X# X# $FreeBSD$ X# X X# The file is identical to X# ftp://ftp.xfree86.org/pub/XFree86/3.3.6/binaries/FreeBSD-2.2.x/Xbin.tgz X# Renamed to avoid distfiles conflict with x11/XFree86-aoutlibs. X XPORTNAME= XFree86-aoutlibs XPORTVERSION= 3.3.6 XCATEGORIES= x11 XMASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/ XDISTNAME= Xbin336aout XEXTRACT_SUFX= .tgz X XMAINTAINER= keith@freebsd.sinica.edu.tw X XONLY_FOR_ARCHS= i386 X XWRKSRC= ${WRKDIR}/lib XNO_BUILD= yes XPORTOBJFORMAT= aout X XUSE_X_PREFIX= yes XPKGINSTALL= ${WRKDIR}/pkg-install X Xpre-configure: X @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGREQ} ${PKGNAME} INSTALL X @${SED} -e "s;@PREFIX@;${PREFIX};g" ${FILESDIR}/INSTALL.in > ${WRKDIR}/pkg-install X Xpre-install: X @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL X Xdo-install: X @${MKDIR} ${PREFIX}/lib/aout X cd ${WRKSRC}; \ X for l in $$(ls lib*); do \ X ${SETENV} OBJFORMAT=${PORTOBJFORMAT} \ X ${INSTALL_PROGRAM} $$l ${PREFIX}/lib/aout; \ X done X ${TOUCH} ${PREFIX}/lib/aout/zh-XFree86-aoutlibs-3.3.6 X ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/aout X X.include END-of-XFree86-aoutlibs/Makefile echo x - XFree86-aoutlibs/pkg-req sed 's/^X//' >XFree86-aoutlibs/pkg-req << 'END-of-XFree86-aoutlibs/pkg-req' X#!/bin/sh Xenv=/usr/bin/env Xfgrep=/usr/bin/fgrep Xldconfig=/sbin/ldconfig Xld_so=/usr/libexec/ld.so Xif [ x$2 = xINSTALL ]; then X $env OBJFORMAT=aout $ldconfig -r | $fgrep -q -e '-lc.3' X if [ $? -ne 0 -o ! -x $ld_so ]; then X cat <XFree86-aoutlibs/pkg-plist << 'END-of-XFree86-aoutlibs/pkg-plist' Xlib/aout/libX11.so.6.1 Xlib/aout/liboldX.so.6.0 Xlib/aout/libICE.so.6.3 Xlib/aout/libSM.so.6.0 Xlib/aout/libXext.so.6.3 Xlib/aout/libXt.so.6.0 Xlib/aout/libXmu.so.6.0 Xlib/aout/libXaw.so.6.1 Xlib/aout/libXIE.so.6.0 Xlib/aout/libXi.so.6.0 Xlib/aout/libXtst.so.6.1 Xlib/aout/libPEX5.so.6.0 Xlib/aout/libXp.so.6.2 Xlib/aout/zh-XFree86-aoutlibs-3.3.6 X@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B X@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R END-of-XFree86-aoutlibs/pkg-plist echo x - XFree86-aoutlibs/pkg-comment sed 's/^X//' >XFree86-aoutlibs/pkg-comment << 'END-of-XFree86-aoutlibs/pkg-comment' XXFree86 a.out compatability libraries END-of-XFree86-aoutlibs/pkg-comment exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message