summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2015-02-04 15:37:58 +0000
committertaca <taca@pkgsrc.org>2015-02-04 15:37:58 +0000
commit7c3874d01694cd7ba73f4b85528eac0e715429d6 (patch)
tree8b0248412e29907da9ff0df6021bf9efa4fd96ab /misc
parent60e951860cf26cd81cec2cafaef3efe4e7e60e72 (diff)
downloadpkgsrc-7c3874d01694cd7ba73f4b85528eac0e715429d6.tar.gz
Change PKGBASE name from ruby-sprockets to ruby-sprockets22 and avoid
conflicts with ruby-sprockets package.
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-sprockets22/ALTERNATIVES1
-rw-r--r--misc/ruby-sprockets22/Makefile11
-rw-r--r--misc/ruby-sprockets22/PLIST6
3 files changed, 13 insertions, 5 deletions
diff --git a/misc/ruby-sprockets22/ALTERNATIVES b/misc/ruby-sprockets22/ALTERNATIVES
new file mode 100644
index 00000000000..a8630a5fbc7
--- /dev/null
+++ b/misc/ruby-sprockets22/ALTERNATIVES
@@ -0,0 +1 @@
+bin/sprockets @PREFIX@/bin/sprockets22@RUBY_SUFFIX@
diff --git a/misc/ruby-sprockets22/Makefile b/misc/ruby-sprockets22/Makefile
index 3769ffda055..abc29e4dd65 100644
--- a/misc/ruby-sprockets22/Makefile
+++ b/misc/ruby-sprockets22/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2014/11/01 14:34:54 taca Exp $
+# $NetBSD: Makefile,v 1.4 2015/02/04 15:37:58 taca Exp $
DISTNAME= sprockets-2.2.3
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/sprockets/sprockets22/}
CATEGORIES= www
MAINTAINER= pkgsrc-users@NetBSD.org
@@ -13,7 +14,13 @@ DEPENDS+= ${RUBY_PKGPREFIX}-rack14>=1.4<2:../../www/ruby-rack14
DEPENDS+= ${RUBY_PKGPREFIX}-multi_json>=1.0<2:../../textproc/ruby-multi_json
DEPENDS+= ${RUBY_PKGPREFIX}-tilt>=1.1<2:../../textproc/ruby-tilt
-CONFLICTS+= ruby[1-9][0-9]-sprockets>=2.3.1
+OVERRIDE_GEMSPEC= :executables sprockets=sprockets22 \
+ :files bin/sprockets=bin/sprockets22
+RUBYGEM_OPTIONS+= --format-executable
+
+pre-configure:
+ ${TEST} -f ${WRKSRC}/bin/sprockets22 || \
+ ${MV} ${WRKSRC}/bin/sprockets ${WRKSRC}/bin/sprockets22
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/misc/ruby-sprockets22/PLIST b/misc/ruby-sprockets22/PLIST
index 604f9ec263f..97ae6a31429 100644
--- a/misc/ruby-sprockets22/PLIST
+++ b/misc/ruby-sprockets22/PLIST
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2012/12/17 12:09:39 taca Exp $
-bin/sprockets
+@comment $NetBSD: PLIST,v 1.2 2015/02/04 15:37:58 taca Exp $
+bin/sprockets22${RUBY_SUFFIX}
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/LICENSE
${GEM_LIBDIR}/README.md
-${GEM_LIBDIR}/bin/sprockets
+${GEM_LIBDIR}/bin/sprockets22
${GEM_LIBDIR}/lib/rake/sprocketstask.rb
${GEM_LIBDIR}/lib/sprockets.rb
${GEM_LIBDIR}/lib/sprockets/asset.rb