mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
fae8e0f615
- Implement new knobs for gems and rake (these are included in ruby 1.9 distribution already). Also move gem bits from ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend on gems or rake you should define USE_RUBYGEMS/USE_RAKE accordingly. Also RAKE_BIN variable is provided for pointing to the right rake executable. - Rewrite RUBY_SCHEBANG in awk to eliminate build dependency on ruby. Discussed with: Jonathan Weiss <jw@innerewut.de> [1] (gems maintainer) Tested by: ports@
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
# New ports collection makefile for: instiki
|
|
# Date created: 4 January 2005
|
|
# Whom: Kelley Reynolds <kelley@insidesystems.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= instiki
|
|
PORTVERSION= 0.13.0
|
|
CATEGORIES= www ruby
|
|
MASTER_SITES= RF
|
|
#DISTNAME= ${PORTNAME}-0.12.0
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= beech@FreeBSD.org
|
|
COMMENT= Easy to set up wiki clone implemented in ruby
|
|
|
|
LIB_DEPENDS= sqlite3:${PORTSDIR}/databases/sqlite3
|
|
|
|
USE_RUBY= yes
|
|
USE_RAKE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
INSTIKIPORT?= 2500
|
|
|
|
OPTIONS= PORT_BLUECLOTH "Use BlueCloth gem from ports" On
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
SUB_LIST= INSTIKIPORT=${INSTIKIPORT} \
|
|
RUBY_WITH_SUFFIX=${RUBY_WITH_SUFFIX}
|
|
SUB_FILES+= pkg-deinstall pkg-message
|
|
RUBY_SHEBANG_FILES=instiki
|
|
|
|
.if defined(WITH_PORT_BLUECLOTH)
|
|
# can't include this because it redefines do-install.
|
|
# .include "${PORTSDIR}/devel/ruby-gems/Makefile.common"
|
|
# For now, copy and paste the definition of SPEC_DIR from the above
|
|
REV= ${RUBY_VER}
|
|
GEMS_BASE_DIR= lib/ruby/gems/${REV}
|
|
SPEC_DIR= ${GEMS_BASE_DIR}/specifications
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${SPEC_DIR}/BlueCloth-1.0.0.gemspec:${PORTSDIR}/www/rubygem-bluecloth
|
|
EXTRA_PATCHES+= ${FILESDIR}/bluecloth-patch-lib-chunks-engines-rb
|
|
.endif
|
|
|
|
post-extract:
|
|
@${FIND} -d ${WRKSRC} -type d -name .svn -exec ${RM} -rf {} \;
|
|
|
|
post-patch:
|
|
${RM} ${WRKSRC}/lib/chunks/engines.rb.orig
|
|
|
|
do-build:
|
|
( cd ${WRKSRC}/db/ && \
|
|
${RAKE_BIN} environment RAILS_ENV=production db:migrate )
|
|
|
|
do-install:
|
|
@${FIND} -E ${WRKSRC} -type f -iregex ".*\._.+" -exec ${RM} "{}" \;
|
|
@${INSTALL} -d ${DATADIR}
|
|
@${CP} -pR ${WRKSRC}/ ${DATADIR}
|
|
@${CP} -n ${DATADIR}/db/production.db.sqlite3 ${DATADIR}/db/default.db.sqlite3
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|