From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 8 12:39:14 2006 Return-Path: X-Original-To: freebsd-ports-bugs@FreeBSD.org Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2AAB16DAAE; Thu, 8 Jun 2006 10:42:00 +0000 (UTC) (envelope-from arsptr@internode.on.net) Received: from mail.internode.on.net (bld-mail01.adl2.internode.on.net [203.16.214.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id D714143D6E; Thu, 8 Jun 2006 10:41:44 +0000 (GMT) (envelope-from arsptr@internode.on.net) Received: from [192.168.1.3] (unverified [59.167.16.44]) by mail.internode.on.net (SurgeMail 3.2f) with ESMTP id 219886974 for multiple; Thu, 08 Jun 2006 20:11:29 +0930 (CST) In-Reply-To: <200606052119.k55LJvoK062418@freefall.freebsd.org> References: <200606052119.k55LJvoK062418@freefall.freebsd.org> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: multipart/mixed; boundary=Apple-Mail-1--342608119 Message-Id: <3918A0B6-B4F0-49E4-A2D2-9E2CF4670074@internode.on.net> From: Alastair Rankine Date: Thu, 8 Jun 2006 20:41:23 +1000 To: Pav Lucistnik X-Mailer: Apple Mail (2.750) Cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/98418: Update port: www/instiki multiple fixes X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 12:39:19 -0000 --Apple-Mail-1--342608119 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Good point. Let's try that again from the top... --Apple-Mail-1--342608119 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="instiki.patch" Content-Disposition: attachment; filename=instiki.patch diff -U 2 -rN /usr/ports/www/instiki/Makefile ./Makefile --- /usr/ports/www/instiki/Makefile Wed May 3 18:00:07 2006 +++ ./Makefile Thu Jun 8 19:58:59 2006 @@ -1,6 +1,2 @@ -# New ports collection makefile for: instiki -# Date created: 4 January 2005 -# Whom: Kelley Reynolds -# # $FreeBSD: ports/www/instiki/Makefile,v 1.8 2006/05/03 08:00:07 pav Exp $ # @@ -9,16 +5,13 @@ PORTVERSION= 0.11.0 CATEGORIES= www ruby -MASTER_SITES= http://rubyforge.org/frs/download.php/9296/ \ - http://rubyforge.rubyuser.de/instiki/ +MASTER_SITES= http://rubyforge.rubyuser.de/instiki/ EXTRACT_SUFX= .tgz -MAINTAINER= arsptr@optusnet.com.au +MAINTAINER= arsptr@internode.on.net COMMENT= Easy to set up wiki clone implemented in ruby RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/sqlite3_api.so:${PORTSDIR}/databases/ruby-sqlite3 BUILD_DEPENDS+= ${RUN_DEPENDS} rake:${PORTSDIR}/devel/rubygem-rake -PATCH_DEPENDS= ${BUILD_DEPENDS} -NO_BUILD= yes USE_RUBY= yes USE_RUBY_FEATURES= 1.8 @@ -35,5 +28,7 @@ RUBY_SHEBANG_FILES=instiki -post-patch: +OPTIONS= PORT_BLUECLOTH "Use BlueCloth gem from ports" On + +do-build: ( cd ${WRKSRC}/db/ && \ rake environment RAILS_ENV=production migrate ) @@ -41,6 +36,29 @@ do-install: ${CP} -pR ${WRKSRC}/ ${PREFIX}/${INSTIKIDIR} - ${CP} ${PREFIX}/${INSTIKIDIR}/db/production.db.sqlite3 ${PREFIX}/${INSTIKIDIR}/db/default.db.sqlite3 + ${CP} ${PREFIX}/${INSTIKIDIR}/db/production.db.sqlite3 \ + ${PREFIX}/${INSTIKIDIR}/db/default.db.sqlite3 ${CHMOD} +x ${PREFIX}/${INSTIKIDIR}/instiki -.include +.include + +.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= 1.8 +GEMS_BASE_DIR= lib/ruby/gems/${REV} +SPEC_DIR= ${GEMS_BASE_DIR}/specifications + +RUN_DEPENDS+= ${LOCALBASE}/${SPEC_DIR}/BlueCloth-1.0.0.gemspec:${PORTSDIR}/www/rubygem-bluecloth + +EXTRA_PATCHES+= ${FILESDIR}/bluecloth-patch-lib-chunks-engines-rb + +post-patch: + ${RM} ${WRKSRC}/lib/chunks/engines.rb.orig + +.endif + +.include + diff -U 2 -rN /usr/ports/www/instiki/files/bluecloth-patch-lib-chunks-engines-rb ./files/bluecloth-patch-lib-chunks-engines-rb --- /usr/ports/www/instiki/files/bluecloth-patch-lib-chunks-engines-rb Thu Jan 1 10:00:00 1970 +++ ./files/bluecloth-patch-lib-chunks-engines-rb Thu Jun 8 19:49:44 2006 @@ -0,0 +1,12 @@ +--- lib/chunks/engines.rb.orig Sun Mar 12 15:57:24 2006 ++++ lib/chunks/engines.rb Tue Jun 6 22:45:16 2006 +@@ -35,7 +35,8 @@ + + class Markdown < AbstractEngine + def mask +- require_dependency 'bluecloth_tweaked' ++ require_dependency 'rubygems' ++ require_gem 'BlueCloth' + BlueCloth.new(@content, @content.options[:engine_opts]).to_html + end + end diff -U 2 -rN /usr/ports/www/instiki/files/instiki.in ./files/instiki.in --- /usr/ports/www/instiki/files/instiki.in Tue May 2 00:32:28 2006 +++ ./files/instiki.in Thu May 4 11:27:13 2006 @@ -24,5 +24,5 @@ : ${instiki_flags="--port %%INSTIKIPORT%% --daemon"} -sig_stop=-KILL +sig_stop=KILL load_rc_config $name --Apple-Mail-1--342608119 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 05/06/2006, at 9:19 PM, Pav Lucistnik wrote: > Synopsis: Update port: www/instiki multiple fixes > > State-Changed-From-To: open->feedback > State-Changed-By: pav > State-Changed-When: Mon Jun 5 21:19:33 UTC 2006 > State-Changed-Why: > Are you sure you don't need rake as patch dependency? You're > running it > in post-patch: target... > > > Responsible-Changed-From-To: freebsd-ports-bugs->pav > Responsible-Changed-By: pav > Responsible-Changed-When: Mon Jun 5 21:19:33 UTC 2006 > Responsible-Changed-Why: > Track > > http://www.freebsd.org/cgi/query-pr.cgi?pr=98418 --Apple-Mail-1--342608119--