head	1.11;
access;
symbols
	HRS_XML_CLEANUP:1.11
	HRS_XML_CLEANUP_PRE:1.10
	EMILYBOYD_REDESIGN:1.8
	PRE_REDESIGN:1.8
	XML_XSL_XP:1.3.0.2
	XML_XSL_XP_BP:1.3;
locks; strict;
comment	@# @;


1.11
date	2006.08.19.21.25.53;	author hrs;	state Exp;
branches;
next	1.10;

1.10
date	2006.07.16.11.22.05;	author simon;	state Exp;
branches;
next	1.9;

1.9
date	2005.12.04.11.50.51;	author pav;	state Exp;
branches;
next	1.8;

1.8
date	2004.11.13.12.23.19;	author ceri;	state Exp;
branches;
next	1.7;

1.7
date	2004.03.23.23.04.23;	author phantom;	state Exp;
branches;
next	1.6;

1.6
date	2003.12.31.10.47.25;	author hrs;	state Exp;
branches;
next	1.5;

1.5
date	2003.12.30.18.27.40;	author andy;	state Exp;
branches;
next	1.4;

1.4
date	2001.12.13.21.17.13;	author phantom;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.10.17.27.39;	author phantom;	state Exp;
branches;
next	1.2;

1.2
date	2000.10.27.12.14.11;	author phantom;	state Exp;
branches;
next	1.1;

1.1
date	2000.01.05.15.34.14;	author phantom;	state Exp;
branches;
next	;


desc
@@


1.11
log
@www cleanup mega commit:

 - Move includes.nav*.sgml to share/sgml/navibar.ent and
   <lang>/share/sgml/navibar.l10n.ent.

 - Move includes.sgml and includes.xsl to
   share/sgml/common.ent, share/sgml/header.ent, <lang>/share/sgml/l10n.ent,
   and <lang>/share/sgml/header.l10n.ent.

 - Move most of XSLT libraries to share/sgml/*.xsl and
   <lang>/share/sgml/*.xsl.

 - Move news.xml and other *.xml files for the similar purpose
   to share/sgml/*.xml and <lang>/share/sgml/*.xml.

 - Switch to use a custom DTD for HTML document.  Now we use
   "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension", which is
   HTML 4.01 + some entities previously pulled via
   "<!ENTITY % includes SYSTEM "includes.sgml"> %includes;" line.
   The location of entity file will be resolved by using catalog file.

 - Add DOCTYPE declearation to XML documents.  This makes the followings
   possible:

   * Use of &foo; entities for SGML in an XML file instead of defining
     {$foo} as the same content.

   * &symbolic; entities for Latin characters.

 - Duplicated information between SGML and XML, or English and
   translated doc, has been removed as much as possible.
@
text
@#
# The FreeBSD Russian Documentation Project
#
# $FreeBSD: www/ru/ports/Makefile,v 1.10 2006/07/16 11:22:05 simon Exp $
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.9 2004/03/23 21:09:19 phantom Exp $
#
# Original revision: 1.38
#

.if exists(../Makefile.conf)
.include "../Makefile.conf"
.endif
.if exists(../Makefile.inc)
.include "../Makefile.inc"
.endif
.if exists(Makefile.inc)
.include "Makefile.inc"
.endif

FETCH_OPT?=	-am

.if defined(PINDEX_OVERRIDE)
${INDEX}: ${PINDEX_OVERRIDE}
	${CP} ${PINDEX_OVERRIDE} ${INDEX}
.elif defined(NOPORTSNET)
${INDEX}: $${PORTSBASE}/${PINDEX}
	${CP} ${PORTSBASE}/${PINDEX} ${INDEX}
.else
${INDEX}:
	${FETCH} ${FETCH_OPT} -o ${INDEX}.bz2 ${INDEXURI}.bz2
	${BUNZIP2} ${INDEX}.bz2
.endif

# build the list of available packages only on the 
# main FreeBSD machines
hostname!= hostname

#
# don't build the packages links if NO_PACKAGES_LINK
# is set and not empty.
#
# XXX: you can set NO_PACKAGES_LINK to your hostname to
#      test the packages link generation
#
.if defined(NO_PACKAGES_LINK) && !empty(NO_PACKAGES_LINK)
hostname=	${NO_PACKAGES_LINK}
.endif

packages.exists:
.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org" || ${hostname} == "www.freebsd.org"
.if  exists(${.CURDIR}/../../en/ports/packages.exists)
	${CP} ${.CURDIR}/../../en/ports/${.TARGET} ${.CURDIR}
.else
	@@if ${SH} ${.CURDIR}/../../en/ports/packages > ${.TARGET}.temp; then \
		${MV} ${.TARGET}.temp ${.TARGET}; \
	else \
		${RM} ${.TARGET}.temp; ${TOUCH} ${.TARGET}; \
	fi;
.endif
.else
	${TOUCH} ${.TARGET}
.endif

Makefile.gen: index.sgml .NOTMAIN
	(	${ECHO_CMD} TIDY=${PERL};\
		${ECHO_CMD} TIDYOPTS="-i'' -npe 's,\"-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension//EN\",\"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\",'";\
		${ECHO_CMD} DOCS= *.sgml;\
		${ECHO_CMD} -n "DYNAMIC_DOCS= ";\
		${ECHO_CMD} -n " master-index.sgml";\
		${ECHO_CMD} -n " index.sgml";\
	) > Makefile.gen
	for categoryfile in ${CATEGORYLIST}; do \
		${ECHO_CMD} -n " $$categoryfile.sgml" >> Makefile.gen; \
	done
.if defined(NO_TIDY)
	${ECHO_CMD} NO_TIDY=${NO_TIDY} >> Makefile.gen
.endif

index.sgml: ${INDEX} categories packages.exists portindex ports.inc .NOTMAIN
	${RM} -f *.sgml
	${PORTINDEX} ${INDEX} ${.CURDIR}

# this builds: categories-alpha.sgml, categories-grouped.sgml,
# master-index.sgml, statistics.ent, <category>.sgml
CATEGORYLIST=`grep "^[a-z]" ../../en/ports/categories | sed -e s"/,.*//"`

install: all beforeinstall

all install clean:
	cd ${.CURDIR}; \
		${MAKE} ${MAKEFLAGS} -f ${.CURDIR}/Makefile.inc0 ${.TARGET}
#.if defined(WITH_PORTS_GROWTH)
#	cd growth; \
#		${MAKE} ${MAKEFLAGS} ${.TARGET}
#beforeinstall:
#.else
beforeinstall:
	${PERL} -pi -e 's/href=\"growth/href=\"http:\/\/www.FreeBSD.org\/ports\/growth/' index.html
#.endif

.include "${WEB_PREFIX}/share/mk/web.site.mk"
@


1.10
log
@MFen 1.37+1.38:

- Make it possible to override the complete path to the INDEX file
  used for the ports/ part of the website, by setting the
  PINDEX_OVERRIDE variable. (Already merged in www/ja/ports/Makefile.)

- Force NO_TIDY for the ports web pages, since it takes a long time to
  run tidy on these huge HTML files, and the files are valid HTML when
  generated by portindex, even without tidy.

  Running without tidy caused the build time to go from ~8 minutes to
  ~1 minute on my test machine.  An additional bonus is that the
  generated HTML files are now significantly smaller.
@
text
@d4 1
a4 1
# $FreeBSD: www/ru/ports/Makefile,v 1.9 2005/12/04 11:50:51 pav Exp $
a21 7
#
# Force NO_TIDY for the ports web pages, since it takes a long time to
# run tidy on these huge HTML files, and the files are valid HTML when
# generated by portindex, even without tidy.
#
NO_TIDY=	YES

d65 10
a74 1
	${ECHO_CMD} DOCS= *.sgml > Makefile.gen
d83 4
@


1.9
log
@- Merge from www/en/ports:

  Makefile 1.44
  Makefile.inc 1.8

  Fetch bzip2 compressed copy of INDEX instead of plain one
@
text
@d4 1
a4 1
# $FreeBSD: www/ru/ports/Makefile,v 1.8 2004/11/13 12:23:19 ceri Exp $
d7 1
a7 1
# Original revision: 1.36
d22 11
a32 1
.if defined(NOPORTSNET)
d73 3
@


1.8
log
@Bandaid for the removal of ports/INDEX; better solutions are welcomed.
@
text
@d4 1
a4 1
# $FreeBSD: www/ru/ports/Makefile,v 1.7 2004/03/23 23:04:23 phantom Exp $
d27 2
a28 1
	${FETCH} ${FETCH_OPT} ${INDEXURI} || (${RM} -f ${INDEX} && false)
@


1.7
log
@Correctly handle cases then CVSROOT pointing to "wrong" repository (which
does not contain ports/INDEX), i.e. do not leave empty INDEX file in
error case.
@
text
@d4 1
a4 1
# $FreeBSD$
d20 1
a20 13
CVS_READONLY?=	YES
CVS_OPT+=	-Q
.if !empty(CVS_READONLY)
CVS_OPT+=	-R
.endif

#
# This hack is allows to build www/ tree for case when ports/ located
# in other repository, for example Repository of Translation Project
#
.if defined(PORTSCVSROOT) && !empty(PORTSCVSROOT)
CVS_OPT+=	-d ${PORTSCVSROOT}
.endif
d22 1
a22 1
.if defined(NOPORTSCVS)
d27 1
a27 2
	${CVS} ${CVS_OPT} co -p ${PINDEX} > ${INDEX} || \
						(${RM} -f ${INDEX} && false)
@


1.6
log
@Put a band-aid on the build breakage.
@
text
@d4 2
a5 2
# $FreeBSD: www/ru/ports/Makefile,v 1.5 2003/12/30 18:27:40 andy Exp $
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.6 2003/12/30 18:26:40 andy Exp $
d16 2
a17 3

.if exists(../../en/ports/Makefile.inc)
.include "../../en/ports/Makefile.inc"
d39 2
a40 1
	${CVS} ${CVS_OPT} co -p ${PINDEX} > ${INDEX}
@


1.5
log
@MFen 1.36
@
text
@d4 1
a4 1
# $FreeBSD$
d85 5
a89 5
.if defined(WITH_PORTS_GROWTH)
	cd growth; \
		${MAKE} ${MAKEFLAGS} ${.TARGET}
beforeinstall:
.else
d92 1
a92 1
.endif
@


1.4
log
@MFen:

        1.30 -> 1.34    Makefile
        1.14 -> 1.17    categories
        1.33 -> 1.42    portindex
        1.51 -> 1.60    ports.inc

Obtained from: The FreeBSD Russian Documentation Project CVS Repository
@
text
@d1 3
d5 4
a8 3
# The FreeBSD Russian Documentation Project
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.5 2001/12/06 12:25:32 phantom Exp $
# Original revision: 1.34
a12 1

d39 1
a39 1
${INDEX}: ${cvsindex}
d55 1
a55 1
hostname=      ${NO_PACKAGES_LINK}
d59 1
a59 1
.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org"
d66 1
a66 1
		${RM} ${.TARGET}.temp; touch ${.TARGET}; \
d80 1
a80 1
install: all
d83 10
a92 2
	(cd ${.CURDIR}; \
		 ${MAKE} ${MAKEFLAGS} -f ${.CURDIR}/Makefile.inc0 ${.TARGET})
@


1.3
log
@Synchronize with FreeBSD russian Documentation Project Repository.

This commit brings in some synchronizations, Original revisions for
all Makefiles, switch from en/web.mk to share/mk/web.site.mk
@
text
@d3 2
a4 2
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.4 2000/11/10 17:04:52 phantom Exp $
# Original revision: 1.30
d34 1
a34 5
	cp ${PORTSBASE}/${PINDEX} ${INDEX}

${Y2K}: $${PORTSBASE}/${PY2K}
	cp ${PORTSBASE}/${PY2K} ${Y2K}

d37 1
a37 5
	cvs ${CVS_OPT} co -p ${PINDEX} > ${INDEX}

${Y2K}: ${cvsy2k}
	cvs ${CVS_OPT} co -p ${PY2K} > ${Y2K}

d44 11
a54 1
.if defined(NOPORTSCVS)
a55 3
.else
packages.exists: ${cvsindex} ${cvsy2k}
.endif
d58 1
a58 1
	cp ${.CURDIR}/../../en/ports/${.TARGET} .
d60 2
a61 2
	@@if sh ${.CURDIR}/../../en/ports/packages > ${.TARGET}.temp; then \
		mv ${.TARGET}.temp ${.TARGET}; \
d63 1
a63 1
		rm ${.TARGET}.temp; touch ${.TARGET}; \
d67 1
a67 1
	touch ${.TARGET}
d71 1
a71 1
	echo DOCS= *.sgml > Makefile.gen
d73 3
a75 3
index.sgml: ${INDEX} ${Y2K} categories packages.exists portindex ports.inc .NOTMAIN
	rm -f *.sgml
	${PORTINDEX} ${INDEX} ${Y2K} ${.CURDIR}
d80 2
a81 1
	(cd ${.CURDIR} && ${MAKE}  ${MAKEFLAGS} -f Makefile.inc0 ${.TARGET})
@


1.2
log
@Mega-update of Russian Web pages to current FreeBSD Russian Doc Project's CVS
Repository state.  This commit mostly brings in a lot of translation synches,
spelling fixes, adds new translations.

Obtained from:	FreeBSD Russian Documentation Project CVS Repository
@
text
@d3 2
a4 2
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.3 2000/10/11 16:25:56 phantom Exp $
# Original revision: 1.29
d9 5
d83 1
a83 1
.include "../web.mk"
@


1.1
log
@Add new directory: www/ru/ports
@
text
@d3 2
a4 1
# Original revision: 1.26
d9 2
a10 2
.if exists(Makefile.inc)
.include "Makefile.inc"
d19 7
d56 5
a60 1
	sh ${.CURDIR}/packages > ${.TARGET}
d69 1
a69 1
index.sgml: ${INDEX} ${Y2K} packages.exists portindex ports.inc .NOTMAIN
d71 1
a71 1
	${PORTINDEX} ${INDEX} ${Y2K}
d76 1
a76 1
	${MAKE}  ${MAKEFLAGS} -f Makefile.inc0 ${.TARGET}
@

