head	1.9;
access;
symbols
	RELEASE_4_7_0:1.7
	RELEASE_4_6_2:1.7
	RELEASE_4_6_1:1.7
	RELEASE_4_6_0:1.7
	RELEASE_5_0_DP1:1.7
	RELEASE_4_5_0:1.5
	RELEASE_4_4_0:1.4
	RELEASE_4_3_0:1.4;
locks; strict;
comment	@# @;


1.9
date	2002.11.04.21.16.32;	author knu;	state dead;
branches;
next	1.8;

1.8
date	2002.10.06.21.38.31;	author knu;	state Exp;
branches;
next	1.7;

1.7
date	2002.03.30.11.16.39;	author knu;	state Exp;
branches;
next	1.6;

1.6
date	2002.01.29.12.08.35;	author knu;	state Exp;
branches;
next	1.5;

1.5
date	2001.12.31.10.20.19;	author dirk;	state Exp;
branches;
next	1.4;

1.4
date	2001.04.12.07.48.28;	author knu;	state Exp;
branches;
next	1.3;

1.3
date	2001.03.19.07.52.45;	author knu;	state Exp;
branches;
next	1.2;

1.2
date	2001.03.03.09.45.51;	author knu;	state Exp;
branches;
next	1.1;

1.1
date	2001.03.03.08.58.07;	author knu;	state Exp;
branches;
next	;


desc
@@


1.9
log
@pRuby has been broken for quite some time, so remove the port.
@
text
@# New ports collection makefile for:	pRuby
# Date created:		24 February 2001
# Whom:			Akinori MUSHA aka knu <knu@@idaemons.org>
#
# $FreeBSD: ports/www/pruby/Makefile,v 1.8 2002/10/06 21:38:31 knu Exp $
#

PORTNAME=	pruby
PORTVERSION=	0.20
CATEGORIES=	www lang ruby
MASTER_SITES=	http://www.inf.bme.hu/~pts/
DIST_SUBDIR=	ruby

MAINTAINER=	knu@@FreeBSD.org

BUILD_DEPENDS=	php:${PHP4_PORTDIR} \
		${LOCALBASE}/libexec/apache/libphp4.so:${MOD_PHP4_PORTDIR} \
		${NONEXISTENT}:${MOD_PHP4_PORTDIR}:configure
.if defined(PACKAGE_BUILDING)
LIB_DEPENDS=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
.endif
RUN_DEPENDS=	${LOCALBASE}/libexec/apache/libphp4.so:${MOD_PHP4_PORTDIR}

BROKEN=		"does not work with the latest PHP4"

USE_GMAKE=	yes
USE_RUBY=	yes

.include <bsd.port.pre.mk>

PHP4_PORTDIR=		${.CURDIR}/../../lang/php4
MOD_PHP4_PORTDIR=	${.CURDIR}/../mod_php4
MOD_PHP4_WRKSRC_CMD=	cd ${MOD_PHP4_PORTDIR} && ${MAKE} -V WRKSRC

DOCS_EN=	README	contrib/_htaccess

pre-everything::
	dir=`${MOD_PHP4_WRKSRC_CMD}`; \
	${MKDIR} $${dir}; \
	${TOUCH} $${dir}/../../Makefile.inc

do-configure:
	cd ${WRKSRC} && ( \
		dir=`${MOD_PHP4_WRKSRC_CMD}`; \
		php contrib/phpinfo.php > phpinfo.out; \
		( \
		${ECHO_CMD} "PHP4_SRC=$${dir}"; \
		${ECHO_CMD} "PHP4_CONFIGURED=yes"; \
		${ECHO_CMD} "RUBY_SRC="; \
		${ECHO_CMD} "RUBY=${RUBY}"; \
		${ECHO_CMD} "PHPINFO_OUT=phpinfo.out"; \
		${ECHO_CMD} "LIBRUBYS_SO=${LOCALBASE}/lib/libruby.so"; \
		) > Configuration; \
	)

pre-install:
	dir=`. ${WRKSRC}/phpinfo.sd; ${ECHO_CMD} $${PI_EXTENSION_DIR}`; \
	${MKDIR} $${dir}

post-install:
	dir=`. ${WRKSRC}/phpinfo.sd; ${ECHO_CMD} $${PI_EXTENSION_DIR}`; \
	${INSTALL_DATA} ${WRKSRC}/ext_pruby_src/pruby_*.rb $${dir}/; \
	${PERL} -i -pe "s,%%EXTENSION_DIR%%,$${dir#${PREFIX}/},g" ${TMPPLIST}
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS_EN}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif

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


1.8
log
@Use RUBY_MOD*.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@Mark as BROKEN; it does not work with the latest PHP4.
@
text
@d65 1
a65 1
	${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
d67 1
a67 1
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
@


1.6
log
@Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.
@
text
@d24 2
@


1.5
log
@Use '::' as an dependency operator for pre-everything target. This is
needed because of the special nature of the pre-everything target.

See http://www.freebsd.org/cgi/getmsg.cgi?fetch=481921+485051+/usr/local/www/db/text/2001/cvs-all/20011007.cvs-all for details.
@
text
@d45 6
a50 6
		${ECHO} "PHP4_SRC=$${dir}"; \
		${ECHO} "PHP4_CONFIGURED=yes"; \
		${ECHO} "RUBY_SRC="; \
		${ECHO} "RUBY=${RUBY}"; \
		${ECHO} "PHPINFO_OUT=phpinfo.out"; \
		${ECHO} "LIBRUBYS_SO=${LOCALBASE}/lib/libruby.so"; \
d55 1
a55 1
	dir=`. ${WRKSRC}/phpinfo.sd; ${ECHO} $${PI_EXTENSION_DIR}`; \
d59 1
a59 1
	dir=`. ${WRKSRC}/phpinfo.sd; ${ECHO} $${PI_EXTENSION_DIR}`; \
@


1.4
log
@I hate it that I have to make this port directly lib-depend on
databases/mysql323-client, but this seems to be the only and last
means to make it build on bento.  *SIGH*

I still strongly hope that apache & mod_php4 will be fix in some way
to avoid this kind of silly workaround.
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/pruby/Makefile,v 1.3 2001/03/19 07:52:45 knu Exp $
d35 1
a35 1
pre-everything:
@


1.3
log
@Run-depend on mod_php4.  Seems the standalone php (lang/php4) and the
apache module of php4 (www/mod_php4) have discrepant (or just
"different") dependencies.

I hope this would fix the build of pruby on bento..
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/pruby/Makefile,v 1.2 2001/03/03 09:45:51 knu Exp $
d19 3
@


1.2
log
@Avoid the use of `!=' assignment where it's possible.  Some old
make(1) seems to have a messy problem with it.

Submitted by:	FreshPorts
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/pruby/Makefile,v 1.1 2001/03/03 08:58:07 knu Exp $
d17 1
@


1.1
log
@Add pruby, a glue interface between PHP and Ruby.
@
text
@d5 1
a5 1
# $FreeBSD$
d27 1
a27 1
MOD_PHP4_WRKSRC!=	cd ${MOD_PHP4_PORTDIR} && ${MAKE} -V WRKSRC
d32 3
a34 2
	${MKDIR} ${MOD_PHP4_WRKSRC}
	${TOUCH} ${MOD_PHP4_WRKSRC}/../../Makefile.inc
d38 1
d41 1
a41 1
		${ECHO} "PHP4_SRC=${MOD_PHP4_WRKSRC}"; \
@

