head	1.18;
access;
symbols
	RELEASE_5_1_0:1.17
	RELEASE_4_8_0:1.16
	RELEASE_5_0_0:1.14
	RELEASE_4_7_0:1.13
	RELEASE_4_6_2:1.11
	RELEASE_4_6_1:1.11
	RELEASE_4_6_0:1.11
	RELEASE_5_0_DP1:1.10
	RELEASE_4_5_0:1.8
	RELEASE_4_4_0:1.7
	RELEASE_4_3_0:1.3;
locks; strict;
comment	@# @;


1.18
date	2003.08.08.03.36.14;	author kris;	state dead;
branches;
next	1.17;

1.17
date	2003.05.07.00.11.12;	author kris;	state Exp;
branches;
next	1.16;

1.16
date	2003.02.21.11.06.29;	author knu;	state Exp;
branches;
next	1.15;

1.15
date	2003.01.02.19.54.47;	author ijliao;	state Exp;
branches;
next	1.14;

1.14
date	2002.10.08.07.23.58;	author ijliao;	state Exp;
branches;
next	1.13;

1.13
date	2002.06.06.14.34.53;	author ijliao;	state Exp;
branches;
next	1.12;

1.12
date	2002.05.25.17.48.57;	author ijliao;	state Exp;
branches;
next	1.11;

1.11
date	2002.05.18.09.14.23;	author ijliao;	state Exp;
branches;
next	1.10;

1.10
date	2002.03.13.14.36.08;	author ijliao;	state Exp;
branches;
next	1.9;

1.9
date	2002.03.07.06.52.52;	author ijliao;	state Exp;
branches;
next	1.8;

1.8
date	2001.11.22.15.29.42;	author ijliao;	state Exp;
branches;
next	1.7;

1.7
date	2001.08.31.12.44.56;	author sf;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.22.11.43.30;	author keith;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.15.23.20.17;	author fenner;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.14.14.36.05;	author sf;	state Exp;
branches;
next	1.3;

1.3
date	2001.04.14.04.55.58;	author keith;	state Exp;
branches;
next	1.2;

1.2
date	2001.03.11.05.27.33;	author keith;	state Exp;
branches;
next	1.1;

1.1
date	2001.03.07.05.07.22;	author keith;	state Exp;
branches;
next	;


desc
@@


1.18
log
@As announced on May 6, remove the broken chinese/mozilla-tclp port
@
text
@# New ports collection makefile for:	zh-mozilla-tclp
# Date created:		07 March 2001
# Whom:			Jing-Tang Keith Jang <keith@@FreeBSD.org>
#
# $FreeBSD: ports/chinese/mozilla-tclp/Makefile,v 1.17 2003/05/07 00:11:12 kris Exp $
#
# This is a rewritten 'universal' version port Makefile.
# Port version 'x.Uy' stands for Mozilla version x.*, edition y
# We will detect the Mozilla you installed and try to fetch correct
# version of language pack.
#
# Just install your favorite Mozilla first ( ports/www/mozilla/ or
# ports/www/mozilla-devel/ or ports/www/mozilla-vendor ) and then
# install mozilla-tclp. The language pack installed will match your
# Mozilla installation. But remember that if you upgrade your Mozilla,
# you have to come and reinstall mozilla-tclp again.
#
# If this version is out-of-date, please visit 
#    http://www.csie.ntu.edu.tw/~b7506051/mozilla/download.html
# And just download and install there.
#

PORTNAME=	mozilla
PORTVERSION=	1.U
PORTEPOCH=	1
CATEGORIES=	chinese www
MASTER_SITES=	http://www.csie.ntu.edu.tw/~b7506051/mozilla/langpack/distfiles/
# Same as ftp://ftp.mozilla.org/pub/mozilla/l10n/lang/$MOZVER/langzhtw.xpi.
# Use this to avoid checksum problems.
PKGNAMESUFFIX=	-tclp
DISTNAME=	${PORTNAME}-langzhtw-${MOZRV}
EXTRACT_SUFX=	.xpi
#NO_CHECKSUM=	YES
#IGNOREFILES=	${PORTNAME}-langzhtw-${MOZRV}${EXTRACT_SUFX}

MAINTAINER=	piaip@@csie.ntu.edu.tw
COMMENT=	Mozilla Traditional Chinese Language Pack (TCLP)

BROKEN=		"Distinfo is incorrect"

FETCH_DEPENDS=	${PREFIX}/lib/mozilla/mozilla:${PORTSDIR}/www/mozilla
BUILD_DEPENDS=	${PREFIX}/lib/mozilla/regxpcom:${PORTSDIR}/www/mozilla
RUN_DEPENDS=	mozilla:${PORTSDIR}/www/mozilla

WRKSRC=		${WRKDIR}/bin

USE_X_PREFIX=	yes
USE_ZIP=	yes
EXTRACT_BEFORE_ARGS=	-qo

MOZRV=		`${SH} ${FILESDIR}/mozver ${SED} ${PREFIX}/lib/mozilla/mozilla`

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 400020
MOZILLA_SH=	mozilla.noxpg4
.else
MOZILLA_SH=	mozilla.xpg4
.endif

pre-fetch:
	@@${ECHO_MSG} "=======================================================>"
	@@${ECHO_MSG} "Detecting your Mozilla revision... "
	@@${ECHO_MSG} "Revision=${MOZRV}"
	@@${ECHO_MSG} "We are going to fetch language pack for this revision."
	@@${ECHO_MSG} "* If you see incorrect revision in the Revision message,"
	@@${ECHO_MSG} "  please upgrade or update your Mozilla installation."
	@@${ECHO_MSG} "* If you see error messages of 'Error code 1' like "
	@@${ECHO_MSG} "  'distinfo is out of date' or 'spelled incorrectly',"
	@@${ECHO_MSG} "  you may try to 'make NO_CHECKSUM=yes'"
	@@${ECHO_MSG} "* If you then got 'file not found' on MASTERSITE, that"
	@@${ECHO_MSG} "  means you've installed a newer or unsupported revision"
	@@${ECHO_MSG} "  of Mozilla that doesn't have any language packs (yet)."
	@@${ECHO_MSG} "=======================================================<"

post-extract:
	${MKDIR} ${WRKSRC}/defaults/pref
	${CP} ${FILESDIR}/unix.js ${WRKSRC}/defaults/pref/.
	${CP} ${FILESDIR}/user.js ${WRKSRC}/defaults/profile/.
	${CP} ${FILESDIR}/user.js ${WRKSRC}/defaults/profile/TW/.
	# fix up file permission if broken
	${FIND} ${WRKSRC} -type f -exec ${CHMOD} a+r-x {} \;
	${FIND} ${WRKSRC} -type d -exec ${CHMOD} a+r+x {} \;
	#${CHMOD} -R a+rX ${WRKSRC}

do-build:
	${SED} -e "s;@@PREFIX@@;${PREFIX};g" \
	${FILESDIR}/${MOZILLA_SH} > ${WRKDIR}/mozilla

# The 'HOME=/tmp' was solving 1.0rc2 regxpcom bug

do-install:
	(cd ${PREFIX}/lib/mozilla; \
	${SETENV} HOME=/tmp LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \
	${SETENV} HOME=/tmp LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome)
	# backing up
	(cd ${PREFIX}/lib/mozilla/chrome; \
	${MV} -f chrome.rdf chrome.rdf.orig; \
	${MV} -f installed-chrome.txt installed-chrome.txt.orig)
	(cd ${PREFIX}/lib/mozilla/defaults/pref; \
	${MV} -f unix.js unix.js.orig)
	(cd ${PREFIX}/lib/mozilla/searchplugins; \
	${MV} -f google.gif google.gif.orig; \
	${MV} -f google.src google.src.orig)
	${MV} -f ${PREFIX}/bin/mozilla ${PREFIX}/bin/mozilla.orig
	# start installation
	${INSTALL_SCRIPT} ${WRKDIR}/mozilla ${PREFIX}/bin
	(cd ${WRKSRC}; ${TAR} -cf - chrome defaults searchplugins) | \
	${TAR} -xf - -C ${PREFIX}/lib/mozilla
	(cd ${PREFIX}/lib/mozilla/chrome; \
	${CP} installed-chrome.txt.orig installed-chrome.txt; \
	${CAT} ${FILESDIR}/installed-chrome.txt >> installed-chrome.txt)
	# finalize chrome registeration
	(cd ${PREFIX}/lib/mozilla; \
	${SETENV} HOME=/tmp LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \
	${SETENV} HOME=/tmp LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome)
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.17
log
@BROKEN: Distinfo is incorrect
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.16
log
@De-pkg-comment.
@
text
@d39 2
@


1.15
log
@upgrade to a "universal" version

PR:		46033, 46048
Submitted by:	maintainer
@
text
@d37 1
@


1.14
log
@upgrade to 1.0.1

PR:		43812
Submitted by:	maintainer
@
text
@d7 11
d19 1
a19 1
#    http://www.csie.ntu.edu.tw/~b7506051/mozilla/
d21 1
a21 1
# Or, change the PORTVERSION below to feasible version and make makesum all
d24 2
a25 1
PORTVERSION=	1.0.1
a27 1
PKGNAMESUFFIX=	-tclp
d30 2
a31 1
DISTNAME=	${PORTNAME}-langzhtw-${PORTVERSION}
d33 2
d38 2
a39 1
BUILD_DEPENDS=	${X11BASE}/lib/mozilla/regxpcom:${PORTSDIR}/www/mozilla
d48 2
d58 15
d78 4
a81 1
	${CHMOD} -R a+rX ${WRKSRC}
d93 1
d103 1
d105 1
a105 1
	(cd ${WRKSRC}; ${TAR} -cf - chrome defaults searchplugins res) | \
d110 1
@


1.13
log
@upgrade to 1.0 release

PR:		38942
Submitted by:	maintainer
@
text
@d10 1
d13 1
a13 2
PORTVERSION=	1.0
LANGPACKDATE=	0607
d19 1
a19 1
DISTNAME=	${PORTNAME}-langzhtw-${PORTVERSION}-${LANGPACKDATE}
@


1.12
log
@upgrade to 1.0.0rc3

PR:		38517
Submitted by:	maintainer
@
text
@d12 2
a13 2
PORTVERSION=	1.0.0rc3
LANGPACKDATE=	0524
@


1.11
log
@upgrade to 1.0.0rc2

PR:		38202
Submitted by:	maintainer
@
text
@d12 2
a13 1
PORTVERSION=	1.0.0rc2
d15 1
a15 1
MASTER_SITES=	http://www.csie.ntu.edu.tw/~b7506051/mozilla/langpack/
d19 1
a19 1
DISTNAME=	langzhtw-1.0.0rc2-0516
@


1.10
log
@upgrade to mozilla 0.9.9

PR:		35855
Submitted by:	maintainer
@
text
@d12 1
a12 1
PORTVERSION=	0.9.9
d16 1
a16 1
# Same as ftp://ftp.mozilla.org/pub/mozilla/l10n/lang/moz0.98/langzhtw.xpi.
d18 1
a18 1
DISTNAME=	langzhtw-0.9.9-0313
d42 3
a44 1
	${CP} ${FILESDIR}/unix.js ${WRKSRC}/defaults/pref
d51 2
d55 2
a56 2
	${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \
	${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome)
d67 1
a67 1
	(cd ${WRKSRC}; ${TAR} -cf - chrome defaults searchplugins) | \
d73 2
a74 2
	${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \
	${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome)
@


1.9
log
@upgrade to 0.9.8

PR:		35618
Submitted by:	maintainer
@
text
@d12 1
a12 3
PORTVERSION=	0.9.8
PORTREVISION=	1
PORTEPOCH=	1
d18 1
a18 1
DISTNAME=	langzhtw-0.9.8-0305
@


1.8
log
@upgrade to 0.9.6
pass maintainership to piaip@@csie.ntu.edu.tw

PR:		32190
Submitted by:	"Francis S.Lin" <piaip@@csie.ntu.edu.tw> (new maintainer)
@
text
@d7 3
d12 3
a14 1
PORTVERSION=	0.9.6
d16 1
a16 1
MASTER_SITES=	http://www.csie.ntu.edu.tw/~b7506051/mt4/langpack/
d18 1
a18 1
# Same as ftp://ftp.mozilla.org/pub/mozilla/l10n/lang/moz0.96/langzhtw.xpi.
d20 1
a20 1
DISTNAME=	langzhtw-0.9.6-1122
d25 1
d36 11
d49 1
a49 1
	${FILESDIR}/mozilla.in > ${WRKDIR}/mozilla
d52 3
d56 8
a63 4
	${MV} -f all-locales.rdf all-locales.rdf.orig; \
	${MV} -f user-locales.rdf user-locales.rdf.orig; \
	${MV} installed-chrome.txt installed-chrome.txt.orig)
	${MV} ${PREFIX}/bin/mozilla ${PREFIX}/bin/mozilla.orig
d65 2
d70 4
a73 8
	${INSTALL_DATA} ${WRKSRC}/chrome/zh-TW.jar \
		${PREFIX}/lib/mozilla/chrome;
	${INSTALL_DATA} ${WRKSRC}/chrome/zh-unix.jar \
		${PREFIX}/lib/mozilla/chrome;
	${INSTALL_DATA} ${WRKSRC}/chrome/TW.jar \
		${PREFIX}/lib/mozilla/chrome;
	# "===> Registering Language Pack for Mozilla...";
	${PREFIX}/bin/mozilla -v;
@


1.7
log
@out of sync with mozilla.
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/mozilla-tclp/Makefile,v 1.6 2001/06/22 11:43:30 keith Exp $
a6 1
BROKEN=	"out of sync with mozilla."
d9 1
a9 1
PORTVERSION=	0.9.1
d13 1
a13 1
# Same as ftp://ftp.mozilla.org/pub/mozilla/l10n/lang/moz0.81/langzhtw.xpi.
d15 1
a15 1
DISTNAME=		0.9.1-0615-RELEASE-langzhtw
d18 1
a18 1
MAINTAINER=	keith@@FreeBSD.org
d36 2
a37 2
	${MV} all-locales.rdf all-locales.rdf.orig; \
	${MV} user-locales.rdf user-locales.rdf.orig; \
a38 2
	(cd ${PREFIX}/lib/mozilla/defaults/pref; \
	${MV} unix.js unix.js.orig)
a43 4
	${INSTALL_DATA} ${FILESDIR}/all-locales.rdf \
		${PREFIX}/lib/mozilla/chrome;
	${INSTALL_DATA} ${FILESDIR}/user-locales.rdf \
		${PREFIX}/lib/mozilla/chrome;
d48 4
a51 1
	${INSTALL_DATA} ${FILESDIR}/unix.js ${PREFIX}/lib/mozilla/defaults/pref
@


1.6
log
@Update to 0.9.1, and unbroke this port.
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/mozilla-tclp/Makefile,v 1.5 2001/06/15 23:20:17 fenner Exp $
d7 1
@


1.5
log
@Put quotes around BROKEN message, since
Syntax error: "(" unexpected
is a much less friendly message than is probably desired.
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/mozilla-tclp/Makefile,v 1.4 2001/06/14 14:36:05 sf Exp $
a7 1
BROKEN=		"out of sync with mozilla(0.9.1)"
d9 1
a9 1
PORTVERSION=	0.8.1
d15 1
a15 1
DISTNAME=	0.8.1-0401-RELEASE-langzhtw
@


1.4
log
@mark as BORKEN: out of sync with mozilla.
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/mozilla-tclp/Makefile,v 1.3 2001/04/14 04:55:58 keith Exp $
d8 1
a8 1
BROKEN=		out of sync with mozilla(0.9.1)
@


1.3
log
@Update to 0.8.1.
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/mozilla-tclp/Makefile,v 1.2 2001/03/11 05:27:33 keith Exp $
d8 1
@


1.2
log
@Fix mozill-bin polling problems when initializing, due to an
incomplete locale setting.

Reported and fix tested by:
kliev, vanilla, keichii, sothat@@zoonews.ee.ntu.edu.tw (Y.Chiu.=)
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/mozilla-tclp/Makefile,v 1.1 2001/03/07 05:07:22 keith Exp $
d9 1
a9 1
PORTVERSION=	0.8
d13 1
a13 1
# Same as ftp://ftp.mozilla.org/pub/mozilla/l10n/lang/moz0.8/langzhtw.xpi.
d15 1
a15 1
DISTNAME=	0.8r-0220-RELEASE-langzhtw
d48 1
a48 1
	${INSTALL_DATA} ${WRKSRC}/chrome/user-locales.rdf \
d51 2
@


1.1
log
@Initial version.

mozilla-tclp is the Mozilla Traditional Chinese Language Pack for
BIG5 users.  It provides an L10N environment for Mozilla 0.8.
@
text
@d5 1
a5 1
# $FreeBSD$
d36 1
d46 2
@

