mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
* Change maintainer email address
* Fix rc.d file to use SIGKILL to terminate * Add new port option to use bluecloth from ports (improved Markdown syntax support) * Remove unfetchable MASTER_SITE URL PR: ports/98418 Submitted by: Alastair Rankine <arsptr@internode.on.net> (maintainer)
This commit is contained in:
parent
8d59c1055b
commit
89d567b868
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164891
@ -7,19 +7,17 @@
|
||||
|
||||
PORTNAME= instiki
|
||||
PORTVERSION= 0.11.0
|
||||
PORTREVISION= 1
|
||||
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
|
||||
|
||||
@ -34,13 +32,37 @@ SUB_LIST+= INSTIKIDIR=${INSTIKIDIR} \
|
||||
SUB_FILES+= pkg-deinstall
|
||||
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 )
|
||||
|
||||
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 <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.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 <bsd.port.post.mk>
|
||||
|
12
www/instiki/files/bluecloth-patch-lib-chunks-engines-rb
Normal file
12
www/instiki/files/bluecloth-patch-lib-chunks-engines-rb
Normal file
@ -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
|
@ -23,7 +23,7 @@ command_interpreter="%%RUBY_WITH_SUFFIX%%"
|
||||
: ${instiki_enable="NO"}
|
||||
: ${instiki_flags="--port %%INSTIKIPORT%% --daemon"}
|
||||
|
||||
sig_stop=-KILL
|
||||
sig_stop=KILL
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user