ports/176504: [NEW PORT] devel/crxmake: Make chromium extensions

Andrei Lavreniyuk andy.lavr at gmail.com
Thu Feb 28 15:00:00 UTC 2013


>Number:         176504
>Category:       ports
>Synopsis:       [NEW PORT] devel/crxmake: Make chromium extensions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 28 15:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Andrei Lavreniyuk
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
Technica-03,Inc.
>Environment:
FreeBSD 59.informalians.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r247144M(clang-r170710): Fri Feb 22 10:52:25 EET 2013     root at 59.informalians.local:/usr/obj/usr/src/sys/Kernel  amd64
>Description:

Make chromium extensions                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                               
WWW: https://github.com/Constellation/crxmake 
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	crxmake
#	crxmake/files
#	crxmake/files/patch-crxmake.rb
#	crxmake/files/patch-crxmake
#	crxmake/pkg-descr
#	crxmake/pkg-message
#	crxmake/distinfo
#	crxmake/Makefile
#
echo c - crxmake
mkdir -p crxmake > /dev/null 2>&1
echo c - crxmake/files
mkdir -p crxmake/files > /dev/null 2>&1
echo x - crxmake/files/patch-crxmake.rb
sed 's/^X//' >crxmake/files/patch-crxmake.rb << '78e701649e17f1edb765f403cca31257'
X--- lib/crxmake.rb.orig	2013-01-18 06:02:32.000000000 +0200
X+++ lib/crxmake.rb	2013-02-28 14:32:33.630057254 +0200
X@@ -1,5 +1,3 @@
X-#!/usr/bin/ruby
X-# vim: fileencoding=utf-8
X require 'rubygems'
X require 'zip/zip'
X require 'openssl'
78e701649e17f1edb765f403cca31257
echo x - crxmake/files/patch-crxmake
sed 's/^X//' >crxmake/files/patch-crxmake << 'f7f7f26c448d6485e1486c5a52ffbd01'
X--- bin/crxmake.orig	2013-01-18 06:02:32.000000000 +0200
X+++ bin/crxmake	2013-02-28 14:31:30.108056608 +0200
X@@ -1,13 +1,7 @@
X-#!/usr/bin/ruby
X-# vim: fileencoding=utf-8
X+#!/usr/local/bin/ruby
X require 'rubygems'
X require 'optparse'
X-begin
X-  require 'crxmake'
X-rescue LoadError
X-  # require_relative is 1.9 only
X-  require File.expand_path("../../lib/crxmake", __FILE__)
X-end
X+require 'crxmake'
X 
X data = {}
X usage = <<-EOS
f7f7f26c448d6485e1486c5a52ffbd01
echo x - crxmake/pkg-descr
sed 's/^X//' >crxmake/pkg-descr << 'a9d3538ca34e93331d496adb74406a28'
XMake chromium extensions
X
XWWW: https://github.com/Constellation/crxmake
a9d3538ca34e93331d496adb74406a28
echo x - crxmake/pkg-message
sed 's/^X//' >crxmake/pkg-message << 'b219f46714d85101a1c1a84882a9b65f'
XDESCRIPTION:
X
Xmake chromium extensions
X
Xcommand line
X  $ crxmake --pack-extension=<extension dir> --extension-output=<extension output path> --pack-extension-key=<pem path>
X
X  required opt
X   --pack-extension=<extension dir>
X     extension source directory
X  optional opt
X   --extension-output=<extension output path>
X     crx output path (default: ./<extension dirname>.crx)
X   --zip-output=<zip output path>
X     zip output path (default: ./<extension dirname>.zip)
X     if it isn't defined, crxmake is working on crx mode.
X   --mode=<zip or crx>
X     if it is defined, this value mode is priority.
X   --pack-extension-key=<pem path>
X     pem key path
X   --key-output=<key path>
X     pem key output path if you generate key (default: ./<extension
X  dirname>.pem)
X  --ignore-file=<pattern>
X    pattern to ignore files
X    pattern is compiled by Regexp.new(<pattern>)
X  --ignore-dir=<pattern>
X    pattern to ignore directories
X    pattern is compiled by Regexp.new(<pattern>)
X  required opt
X   --pack-extension=<extension dir>
X     extension source directory
b219f46714d85101a1c1a84882a9b65f
echo x - crxmake/distinfo
sed 's/^X//' >crxmake/distinfo << 'fa1577624a8d4746fe3919a0abdc739e'
XSHA256 (master.zip) = 5c653b38f366be1c85a16d711b495fd8b2f77c5126ef484b729512cd23032b80
XSIZE (master.zip) = 7278
fa1577624a8d4746fe3919a0abdc739e
echo x - crxmake/Makefile
sed 's/^X//' >crxmake/Makefile << '5fd9a51419cb4405df1d075a8a88a6db'
X# Created by: Andrei Lavreniyuk <andy.lavr at gmail.com>
X# $FreeBSD$
X
XPORTNAME=	crxmake
XPORTVERSION=	2.0.4
XCATEGORIES=	devel
XMASTER_SITES=	https://github.com/Constellation/crxmake/archive/ \
X		http://tor.reactor-xg.kiev.ua/files/
XDISTNAME=	master
X
XMAINTAINER=	andy.lavr at gmail.com
XCOMMENT=	Make chromium extensions (.crx or .zip)
X
XLICENSE=	MIT
X
XEXTRACT_DEPENDS=	zip:${PORTSDIR}/archivers/zip
XRUN_DEPENDS=	${RUBY_ARCHLIBDIR}/iconv.so:${PORTSDIR}/converters/ruby-iconv \
X		zip.rb:${PORTSDIR}/archivers/ruby-zip
X
XNO_BUILD=	yes
XUSE_OPENSSL=	yes
XUSE_ZIP=	yes
XUSE_RUBY=	yes
X
XWRKSRC=	${WRKDIR}/crxmake-master
X
XPLIST_FILES=	${LOCALBASE}/bin/crxmake \
X		${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/crxmake.rb
X
Xpost-patch:
X	@${FIND} ${WRKSRC} -name '*.orig' -delete
X
Xdo-install:
X	@${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${WRKSRC}/bin/crxmake ${LOCALBASE}/bin
X	@${INSTALL_DATA} ${WRKSRC}/lib/crxmake.rb ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}
X
X.include <bsd.port.mk>
5fd9a51419cb4405df1d075a8a88a6db
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list