svn commit: r439630 - in head/devel/rubygem-native-package-installer: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Fri Apr 28 20:24:46 UTC 2017
Author: sunpoet
Date: Fri Apr 28 20:24:44 2017
New Revision: 439630
URL: https://svnweb.freebsd.org/changeset/ports/439630
Log:
Add FreeBSD support (accepted and merged by upstream)
- Fix LICENSE
- Add LICENSE_FILE
- Add NO_ARCH
- Update pkg-descr
- Update WWW
- Bump PORTREVISION for package change
Added:
head/devel/rubygem-native-package-installer/files/
head/devel/rubygem-native-package-installer/files/patch-gemspec (contents, props changed)
head/devel/rubygem-native-package-installer/files/patch-lib-native-package-installer-platform-freebsd.rb (contents, props changed)
head/devel/rubygem-native-package-installer/files/patch-lib-native-package-installer-platform.rb (contents, props changed)
Modified:
head/devel/rubygem-native-package-installer/Makefile
head/devel/rubygem-native-package-installer/pkg-descr (contents, props changed)
Modified: head/devel/rubygem-native-package-installer/Makefile
==============================================================================
--- head/devel/rubygem-native-package-installer/Makefile Fri Apr 28 20:24:38 2017 (r439629)
+++ head/devel/rubygem-native-package-installer/Makefile Fri Apr 28 20:24:44 2017 (r439630)
@@ -2,14 +2,17 @@
PORTNAME= native-package-installer
PORTVERSION= 1.0.0
+PORTREVISION= 1
CATEGORIES= devel rubygems
MASTER_SITES= RG
-MAINTAINER= ruby at FreeBSD.org
+MAINTAINER= sunpoet at FreeBSD.org
COMMENT= Helper to install native packages on "gem install"
-LICENSE= LGPL21+
+LICENSE= LGPL3+
+LICENSE_FILE_LGPL3= ${WRKSRC}/doc/text/lgpl-3.txt
+NO_ARCH= yes
USE_RUBY= yes
USES= gem
Added: head/devel/rubygem-native-package-installer/files/patch-gemspec
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-native-package-installer/files/patch-gemspec Fri Apr 28 20:24:44 2017 (r439630)
@@ -0,0 +1,11 @@
+--- native-package-installer.gemspec.orig 2017-04-28 06:48:19 UTC
++++ native-package-installer.gemspec
+@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
+ s.date = "2017-04-10"
+ s.description = "Users need to install native packages to install an extension library\nthat depends on native packages. It bores users because users need to\ninstall native packages and an extension library separately.\n\nnative-package-installer helps to install native packages on \"gem install\".\nUsers can install both native packages and an extension library by one action,\n\"gem install\".".freeze
+ s.email = ["kou at clear-code.com".freeze]
+- s.files = ["README.md".freeze, "Rakefile".freeze, "doc/text/gpl-3.txt".freeze, "doc/text/lgpl-3.txt".freeze, "lib/native-package-installer.rb".freeze, "lib/native-package-installer/executable-finder.rb".freeze, "lib/native-package-installer/platform.rb".freeze, "lib/native-package-installer/platform/alt-linux.rb".freeze, "lib/native-package-installer/platform/arch-linux.rb".freeze, "lib/native-package-installer/platform/debian.rb".freeze, "lib/native-package-installer/platform/fedora.rb".freeze, "lib/native-package-installer/platform/homebrew.rb".freeze, "lib/native-package-installer/platform/macports.rb".freeze, "lib/native-package-installer/platform/redhat.rb".freeze, "lib/native-package-installer/platform/suse.rb".freeze, "lib/native-package-installer/platform/unknown.rb".freeze, "lib/native-package-installer/version.rb".freeze, "test/run-test.rb".freeze, "test/test-executable-finder.rb".freeze]
++ s.files = ["README.md".freeze, "Rakefile".freeze, "doc/text/gpl-3.txt".freeze, "doc/text/lgpl-3.txt".freeze, "lib/native-package-installer.rb".freeze, "lib/native-package-installer/executable-finder.rb".freeze, "lib/native-package-installer/platform.rb".freeze, "lib/native-package-installer/platform/alt-linux.rb".freeze, "lib/native-package-installer/platform/arch-linux.rb".freeze, "lib/native-package-installer/platform/debian.rb".freeze, "lib/native-package-installer/platform/fedora.rb".freeze, "lib/native-package-installer/platform/freebsd.rb".freeze, "lib/native-package-installer/platform/homebrew.rb".freeze, "lib/native-package-installer/platform/macports.rb".freeze, "lib/native-package-installer/platform/redhat.rb".freeze, "lib/native-package-installer/platform/suse.rb".freeze, "lib/native-package-installer/platform/unknown.rb".freeze, "lib/native-package-installer/version.rb".freeze, "test/run-test.rb".freeze, "test/test-executable-finder.rb".freeze]
+ s.homepage = "https://github.com/ruby-gnome2/native-package-installer".freeze
+ s.licenses = ["LGPL-3+".freeze]
+ s.rubygems_version = "2.6.11".freeze
Added: head/devel/rubygem-native-package-installer/files/patch-lib-native-package-installer-platform-freebsd.rb
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-native-package-installer/files/patch-lib-native-package-installer-platform-freebsd.rb Fri Apr 28 20:24:44 2017 (r439630)
@@ -0,0 +1,43 @@
+--- lib/native-package-installer/platform/freebsd.rb.orig 2017-04-27 16:32:17 UTC
++++ lib/native-package-installer/platform/freebsd.rb
+@@ -0,0 +1,40 @@
++# Copyright (C) 2017 Ruby-GNOME2 Project Team
++#
++# This library is free software: you can redistribute it and/or modify
++# it under the terms of the GNU Lesser General Public License as published by
++# the Free Software Foundation, either version 3 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU Lesser General Public License for more details.
++#
++# You should have received a copy of the GNU Lesser General Public License
++# along with this program. If not, see <http://www.gnu.org/licenses/>.
++
++class NativePackageInstaller
++ module Platform
++ class FreeBSD
++ Platform.register(self)
++
++ class << self
++ def current_platform?
++ ExecutableFinder.exist?("pkg")
++ end
++ end
++
++ def package(spec)
++ spec[:freebsd]
++ end
++
++ def install_command
++ "pkg install -y"
++ end
++
++ def need_super_user_priviledge?
++ true
++ end
++ end
++ end
++end
Added: head/devel/rubygem-native-package-installer/files/patch-lib-native-package-installer-platform.rb
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-native-package-installer/files/patch-lib-native-package-installer-platform.rb Fri Apr 28 20:24:44 2017 (r439630)
@@ -0,0 +1,10 @@
+--- lib/native-package-installer/platform.rb.orig 2017-04-27 16:20:10 UTC
++++ lib/native-package-installer/platform.rb
+@@ -33,6 +33,7 @@ class NativePackageInstaller
+ end
+ end
+
++require "native-package-installer/platform/freebsd"
+ require "native-package-installer/platform/debian"
+ require "native-package-installer/platform/fedora"
+ require "native-package-installer/platform/redhat"
Modified: head/devel/rubygem-native-package-installer/pkg-descr
==============================================================================
--- head/devel/rubygem-native-package-installer/pkg-descr Fri Apr 28 20:24:38 2017 (r439629)
+++ head/devel/rubygem-native-package-installer/pkg-descr Fri Apr 28 20:24:44 2017 (r439630)
@@ -1,4 +1,7 @@
-native-package-installer helps to install native packages
-on "gem install".
+Users need to install native packages to install an extension library that
+depends on native packages. It bores users because users need to install native
+packages and an extension library separately. native-package-installer helps to
+install native packages on "gem install". Users can install both native packages
+and an extension library by one action, "gem install".
-WWW: https://rubygems.org/gems/native-package-installer/
+WWW: https://github.com/ruby-gnome2/native-package-installer
More information about the svn-ports-all
mailing list