[arch-commits] Commit in unicorn/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:01:16 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:01:16
  Author: foutrelis
Revision: 748364

archrelease: copy trunk to community-staging-x86_64

Added:
  unicorn/repos/community-staging-x86_64/
  unicorn/repos/community-staging-x86_64/PKGBUILD
    (from rev 748363, unicorn/trunk/PKGBUILD)
  unicorn/repos/community-staging-x86_64/unicorn-1.0.1-ruby-gem-rename.patch
    (from rev 748363, unicorn/trunk/unicorn-1.0.1-ruby-gem-rename.patch)

-------------------------------------+
 PKGBUILD                            |   78 ++++++
 unicorn-1.0.1-ruby-gem-rename.patch |  442 ++++++++++++++++++++++++++++++++++
 2 files changed, 520 insertions(+)

Copied: unicorn/repos/community-staging-x86_64/PKGBUILD (from rev 748363, unicorn/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-10 04:01:16 UTC (rev 748364)
@@ -0,0 +1,78 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=unicorn
+pkgname=('unicorn' 'python-unicorn' 'ruby-unicorn-engine')
+pkgver=1.0.1
+pkgrel=9
+pkgdesc='Lightweight, multi-platform, multi-architecture CPU emulator framework based on QEMU'
+url='https://www.unicorn-engine.org'
+arch=('x86_64')
+license=('GPL2')
+makedepends=('python' 'python2' 'python-setuptools' 'ruby' 'ruby-rdoc')
+checkdepends=('cmocka')
+options=('staticlibs' '!emptydirs')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/unicorn-engine/unicorn/archive/${pkgver}.tar.gz
+        unicorn-1.0.1-ruby-gem-rename.patch)
+sha512sums=('edfe1f7bfbc1d20f5b62232057e194a937bc09db686ef2efadb33a54605029a53426432cdb2a29511385aacdb9343b3b3091af50a1909098d7cf6db3429eb966'
+            '1d316dafd3c9066b26a0162db02a1f05b876282424917276acb5b5f18f45282884729b1249bb3150476877b340fee277d83520ee17d0ac905530e12ebef27884')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  sed 's|-O3|-O2|g' -i Makefile qemu/configure
+  sed 's|-g ||g' -i qemu/configure
+  sed 's|UNICORN_DEBUG ?= yes|UNICORN_DEBUG ?= no|g' -i config.mk
+  patch -Np1 < ../unicorn-1.0.1-ruby-gem-rename.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make UNICORN_QEMU_FLAGS="--python=/usr/bin/python2"
+  (cd bindings
+    python const_generator.py python
+    python const_generator.py ruby
+  )
+  (cd bindings/python
+    python setup.py build
+  )
+  (cd bindings/ruby/unicorn_gem
+    gem build unicorn-engine.gemspec
+  )
+}
+
+check() {
+  cd ${pkgbase}-${pkgver}
+  # Tests are not supported right now, hope they get some love soon
+  # make test
+}
+
+package_unicorn() {
+  depends=('glibc')
+  cd ${pkgbase}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 samples/*.c -t "${pkgdir}/usr/share/doc/${pkgname}/samples"
+}
+
+package_python-unicorn() {
+  depends=('python' 'unicorn')
+  cd ${pkgbase}-${pkgver}/bindings/python
+  python setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 sample* shellcode.py -t "${pkgdir}/usr/share/doc/${pkgname}/samples"
+}
+
+package_ruby-unicorn-engine() {
+  depends=('ruby' 'ruby-rdoc' 'unicorn')
+  replaces=('ruby-unicorn')
+  cd ${pkgbase}-${pkgver}/bindings/ruby/unicorn_gem
+
+  local _gemdir="$(gem env gemdir)"
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \
+    -n "${pkgdir}/usr/bin" ${pkgbase}-*.gem -- \
+    --with-opt-include="${srcdir}/${pkgbase}-${pkgver}/include" \
+    --with-opt-lib="${srcdir}/${pkgbase}-${pkgver}"
+
+  rm -r "${pkgdir}/${_gemdir}"/{cache/${pkgbase}-engine-*.gem,build_info}
+  find "${pkgdir}/${_gemdir}" \( -name 'mkmf.log' -or -name 'gem_make.out' \) -delete
+  install -Dm 644 ../sample* -t "${pkgdir}/usr/share/doc/${pkgname}/samples"
+}
+
+# vim: ts=2 sw=2 et:

Copied: unicorn/repos/community-staging-x86_64/unicorn-1.0.1-ruby-gem-rename.patch (from rev 748363, unicorn/trunk/unicorn-1.0.1-ruby-gem-rename.patch)
===================================================================
--- community-staging-x86_64/unicorn-1.0.1-ruby-gem-rename.patch	                        (rev 0)
+++ community-staging-x86_64/unicorn-1.0.1-ruby-gem-rename.patch	2020-11-10 04:01:16 UTC (rev 748364)
@@ -0,0 +1,442 @@
+From 13007eb12ae17f1712f0dece983c78d72960154a Mon Sep 17 00:00:00 2001
+From: Sascha Schirra <sashs82 at gmail.com>
+Date: Tue, 19 Sep 2017 02:43:21 +0200
+Subject: [PATCH] renamed unicorn gem to unicorn-engine (#895)
+
+* renamed gem unicorn to unicorn-engine
+
+* renamed modules to unicornengine
+
+* renamed Module Unicorn to UnicornEngine and the gem unicorn-engine to unicornengine
+
+* unicornengine -> unicorn_engine
+---
+ bindings/const_generator.py                                |  4 ++--
+ bindings/ruby/Makefile                                     |  2 +-
+ bindings/ruby/sample_arm.rb                                |  6 +++---
+ bindings/ruby/sample_arm64.rb                              |  6 +++---
+ bindings/ruby/sample_m68k.rb                               |  6 +++---
+ bindings/ruby/sample_mips.rb                               |  6 +++---
+ bindings/ruby/sample_sparc.rb                              |  6 +++---
+ bindings/ruby/sample_x86.rb                                |  6 +++---
+ bindings/ruby/sample_x86_gdt.rb                            |  6 +++---
+ bindings/ruby/unicorn_gem/ext/extconf.rb                   |  4 ++--
+ bindings/ruby/unicorn_gem/ext/types.h                      |  8 ++++++++
+ bindings/ruby/unicorn_gem/ext/unicorn.c                    | 14 ++++----------
+ .../lib/{unicorn => unicorn_engine}/arm64_const.rb         |  2 +-
+ .../lib/{unicorn => unicorn_engine}/arm_const.rb           |  2 +-
+ .../lib/{unicorn => unicorn_engine}/m68k_const.rb          |  2 +-
+ .../lib/{unicorn => unicorn_engine}/mips_const.rb          |  2 +-
+ .../lib/{unicorn => unicorn_engine}/sparc_const.rb         |  2 +-
+ .../lib/{unicorn => unicorn_engine}/unicorn_const.rb       |  2 +-
+ .../unicorn_gem/lib/{unicorn => unicorn_engine}/version.rb |  0
+ .../lib/{unicorn => unicorn_engine}/x86_const.rb           |  2 +-
+ bindings/ruby/unicorn_gem/unicorn.gemspec                  |  6 +++---
+ 22 files changed, 51 insertions(+), 49 deletions(-)
+ rename bindings/ruby/unicorn_gem/lib/{unicorn => unicorn_engine}/arm64_const.rb (99%)
+ rename bindings/ruby/unicorn_gem/lib/{unicorn => unicorn_engine}/arm_const.rb (99%)
+ rename bindings/ruby/unicorn_gem/lib/{unicorn => unicorn_engine}/m68k_const.rb (95%)
+ rename bindings/ruby/unicorn_gem/lib/{unicorn => unicorn_engine}/mips_const.rb (99%)
+ rename bindings/ruby/unicorn_gem/lib/{unicorn => unicorn_engine}/sparc_const.rb (98%)
+ rename bindings/ruby/unicorn_gem/lib/{unicorn => unicorn_engine}/unicorn_const.rb (98%)
+ rename bindings/ruby/unicorn_gem/lib/{unicorn => unicorn_engine}/version.rb (100%)
+ rename bindings/ruby/unicorn_gem/lib/{unicorn => unicorn_engine}/x86_const.rb (99%)
+
+From 8df86c86a40d0341cd9f3209747c563ff6e39178 Mon Sep 17 00:00:00 2001
+From: Sascha Schirra <sashs82 at gmail.com>
+Date: Mon, 16 Oct 2017 18:53:20 +0200
+Subject: [PATCH] changed gem name to unicorn-engine (#911)
+
+* changed gem name to unicorn-engine
+
+* changed the gem name in Makefile
+---
+ bindings/ruby/Makefile                    | 2 +-
+ bindings/ruby/unicorn_gem/unicorn.gemspec | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+From bc34c36eaeca0f4fc672015d24ce3efbcc81d6e4 Mon Sep 17 00:00:00 2001
+From: Sascha Schirra <sashs82 at gmail.com>
+Date: Fri, 27 Oct 2017 14:30:01 +0200
+Subject: [PATCH] version changed and unicorn.gemspec renamed to
+ unicorn-engine.gemspec (#915)
+
+---
+ bindings/ruby/Makefile                                                | 2 +-
+ bindings/ruby/unicorn_gem/lib/unicorn_engine/version.rb               | 2 +-
+ bindings/ruby/unicorn_gem/{unicorn.gemspec => unicorn-engine.gemspec} | 0
+ 3 files changed, 2 insertions(+), 2 deletions(-)
+ rename bindings/ruby/unicorn_gem/{unicorn.gemspec => unicorn-engine.gemspec} (100%)
+
+diff --git a/bindings/const_generator.py b/bindings/const_generator.py
+index c224d082..73f67937 100644
+--- a/bindings/const_generator.py
++++ b/bindings/const_generator.py
+@@ -25,10 +25,10 @@
+             'comment_close': '',
+         },
+     'ruby': {
+-            'header': "# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [%s_const.rb]\n\nmodule Unicorn\n",
++            'header': "# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [%s_const.rb]\n\nmodule UnicornEngine\n",
+             'footer': "end",
+             'line_format': '\tUC_%s = %s\n',
+-            'out_file': './ruby/unicorn_gem/lib/unicorn/%s_const.rb',
++            'out_file': './ruby/unicorn_gem/lib/unicorn_engine/%s_const.rb',
+             # prefixes for constant filenames of all archs - case sensitive
+             'arm.h': 'arm',
+             'arm64.h': 'arm64',
+diff --git a/bindings/ruby/Makefile b/bindings/ruby/Makefile
+index 2eb376eb..679a1835 100644
+--- a/bindings/ruby/Makefile
++++ b/bindings/ruby/Makefile
+@@ -5,7 +5,7 @@
+ # Use bundle install && rake to install gem and test
+ install: gen_const
+ 	cd unicorn_gem && rake build
+-	cd unicorn_gem && gem install --local pkg/unicorn-1.0.0.gem
++	cd unicorn_gem && gem install --local pkg/unicorn_engine-1.0.0.gem
+ 
+ gen_const:
+ 	cd .. && python const_generator.py ruby
+diff --git a/bindings/ruby/sample_arm.rb b/bindings/ruby/sample_arm.rb
+index b948b617..f9f8c1e6 100644
+--- a/bindings/ruby/sample_arm.rb
++++ b/bindings/ruby/sample_arm.rb
+@@ -1,9 +1,9 @@
+ #!/usr/bin/env ruby
+ 
+-require 'unicorn'
+-require 'unicorn/arm_const'
++require 'unicorn_engine'
++require 'unicorn_engine/arm_const'
+ 
+-include Unicorn
++include UnicornEngine
+ 
+ # code to be emulated
+ ARM_CODE   = "\x37\x00\xa0\xe3\x03\x10\x42\xe0" # mov r0, #0x37; sub r1, r2, r3
+diff --git a/bindings/ruby/sample_arm64.rb b/bindings/ruby/sample_arm64.rb
+index 45b0c9c6..37d95115 100644
+--- a/bindings/ruby/sample_arm64.rb
++++ b/bindings/ruby/sample_arm64.rb
+@@ -1,10 +1,10 @@
+ #!/usr/bin/env ruby
+ # Sample code for ARM64 of Unicorn. Nguyen Anh Quynh <aquynh at gmail.com>
+ # Ruby sample ported by Sascha Schirra <sashs82 at gmail.com>
+-require 'unicorn'
+-require 'unicorn/arm64_const'
++require 'unicorn_engine'
++require 'unicorn_engine/arm64_const'
+ 
+-include Unicorn
++include UnicornEngine
+ 
+ # code to be emulated
+ ARM64_CODE = "\xab\x01\x0f\x8b" #add x11, x13, x15
+diff --git a/bindings/ruby/sample_m68k.rb b/bindings/ruby/sample_m68k.rb
+index 1acff39f..fc2522cf 100644
+--- a/bindings/ruby/sample_m68k.rb
++++ b/bindings/ruby/sample_m68k.rb
+@@ -2,10 +2,10 @@
+ # Sample code for ARM of Unicorn. Nguyen Anh Quynh <aquynh at gmail.com>
+ # Ruby sample ported by Sascha Schirra <sashs82 at gmail.com>
+ 
+-require 'unicorn'
+-require 'unicorn/m68k_const'
++require 'unicorn_engine'
++require 'unicorn_engine/m68k_const'
+ 
+-include Unicorn
++include UnicornEngine
+ 
+ # code to be emulated
+ M68K_CODE  = "\x76\xed" # movq #-19, %d3
+diff --git a/bindings/ruby/sample_mips.rb b/bindings/ruby/sample_mips.rb
+index ec30e87d..c13a9cf8 100644
+--- a/bindings/ruby/sample_mips.rb
++++ b/bindings/ruby/sample_mips.rb
+@@ -1,10 +1,10 @@
+ #!/usr/bin/env ruby
+ # Sample code for MIPS of Unicorn. Nguyen Anh Quynh <aquynh at gmail.com>
+ # Ruby sample ported by Sascha Schirra <sashs82 at gmail.com>
+-require 'unicorn'
+-require 'unicorn/mips_const'
++require 'unicorn_engine'
++require 'unicorn_engine/mips_const'
+ 
+-include Unicorn
++include UnicornEngine
+ 
+ # code to be emulated
+ MIPS_CODE_EB = "\x34\x21\x34\x56" # ori $at, $at, 0x3456;
+diff --git a/bindings/ruby/sample_sparc.rb b/bindings/ruby/sample_sparc.rb
+index 052be189..a4baf18d 100644
+--- a/bindings/ruby/sample_sparc.rb
++++ b/bindings/ruby/sample_sparc.rb
+@@ -1,10 +1,10 @@
+ #!/usr/bin/env ruby
+ # Sample code for SPARC of Unicorn. Nguyen Anh Quynh <aquynh at gmail.com>
+ # Ruby sample ported by Sascha Schirra <sashs82 at gmail.com>
+-require 'unicorn'
+-require 'unicorn/sparc_const'
++require 'unicorn_engine'
++require 'unicorn_engine/sparc_const'
+ 
+-include Unicorn
++include UnicornEngine
+ 
+ # code to be emulated
+ SPARC_CODE = "\x86\x00\x40\x02" # add %g1, %g2, %g3;
+diff --git a/bindings/ruby/sample_x86.rb b/bindings/ruby/sample_x86.rb
+index 9a9740e6..00c480ac 100644
+--- a/bindings/ruby/sample_x86.rb
++++ b/bindings/ruby/sample_x86.rb
+@@ -1,8 +1,8 @@
+ #!/usr/bin/env ruby
+-require 'unicorn'
+-require 'unicorn/x86_const'
++require 'unicorn_engine'
++require 'unicorn_engine/x86_const'
+ 
+-include Unicorn
++include UnicornEngine
+ 
+ X86_CODE32 = "\x41\x4a" # INC ecx; DEC edx
+ X86_CODE32_LOOP = "\x41\x4a\xeb\xfe" # INC ecx; DEC edx; JMP self-loop
+diff --git a/bindings/ruby/sample_x86_gdt.rb b/bindings/ruby/sample_x86_gdt.rb
+index cd064452..7aa6021a 100644
+--- a/bindings/ruby/sample_x86_gdt.rb
++++ b/bindings/ruby/sample_x86_gdt.rb
+@@ -1,8 +1,8 @@
+ #!/usr/bin/env ruby
+-require 'unicorn'
+-require 'unicorn/x86_const'
++require 'unicorn_engine'
++require 'unicorn_engine/x86_const'
+ 
+-include Unicorn
++include UnicornEngine
+ 
+ F_GRANULARITY = 0x8
+ F_PROT_32 = 0x4
+diff --git a/bindings/ruby/unicorn_gem/ext/extconf.rb b/bindings/ruby/unicorn_gem/ext/extconf.rb
+index cdbfc837..d821f3d9 100644
+--- a/bindings/ruby/unicorn_gem/ext/extconf.rb
++++ b/bindings/ruby/unicorn_gem/ext/extconf.rb
+@@ -1,8 +1,8 @@
+ require 'mkmf'
+ 
+-extension_name = 'unicorn'
++extension_name = 'unicorn_engine'
+ 
+ dir_config(extension_name)
+ have_library('unicorn')
+ 
+-create_makefile(extension_name)
+\ No newline at end of file
++create_makefile(extension_name)
+diff --git a/bindings/ruby/unicorn_gem/ext/unicorn.c b/bindings/ruby/unicorn_gem/ext/unicorn.c
+index db1ae81e..bb7363f8 100644
+--- a/bindings/ruby/unicorn_gem/ext/unicorn.c
++++ b/bindings/ruby/unicorn_gem/ext/unicorn.c
+@@ -30,9 +30,9 @@ VALUE UcError = Qnil;
+ VALUE SavedContext = Qnil;
+ 
+-
+-void Init_unicorn() {
+-    rb_require("unicorn/unicorn_const");
+-    UnicornModule = rb_define_module("Unicorn");
++
++void Init_unicorn_engine() {
++    rb_require("unicorn_engine/unicorn_const");
++    UnicornModule = rb_define_module("UnicornEngine");
+     UcError = rb_define_class_under(UnicornModule, "UcError", rb_eStandardError);
+     SavedContext = rb_define_class_under(UnicornModule, "SavedContext", rb_cObject);
+ 
+diff --git a/bindings/ruby/unicorn_gem/lib/unicorn/arm64_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm64_const.rb
+similarity index 99%
+rename from bindings/ruby/unicorn_gem/lib/unicorn/arm64_const.rb
+rename to bindings/ruby/unicorn_gem/lib/unicorn_engine/arm64_const.rb
+index 424de052..db6c5262 100644
+--- a/bindings/ruby/unicorn_gem/lib/unicorn/arm64_const.rb
++++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm64_const.rb
+@@ -1,6 +1,6 @@
+ # For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [arm64_const.rb]
+ 
+-module Unicorn
++module UnicornEngine
+ 
+ # ARM64 registers
+ 
+diff --git a/bindings/ruby/unicorn_gem/lib/unicorn/arm_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm_const.rb
+similarity index 99%
+rename from bindings/ruby/unicorn_gem/lib/unicorn/arm_const.rb
+rename to bindings/ruby/unicorn_gem/lib/unicorn_engine/arm_const.rb
+index 50e7852e..c0edf24c 100644
+--- a/bindings/ruby/unicorn_gem/lib/unicorn/arm_const.rb
++++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm_const.rb
+@@ -1,6 +1,6 @@
+ # For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [arm_const.rb]
+ 
+-module Unicorn
++module UnicornEngine
+ 
+ # ARM registers
+ 
+diff --git a/bindings/ruby/unicorn_gem/lib/unicorn/m68k_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/m68k_const.rb
+similarity index 95%
+rename from bindings/ruby/unicorn_gem/lib/unicorn/m68k_const.rb
+rename to bindings/ruby/unicorn_gem/lib/unicorn_engine/m68k_const.rb
+index 2c53636d..dc641535 100644
+--- a/bindings/ruby/unicorn_gem/lib/unicorn/m68k_const.rb
++++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/m68k_const.rb
+@@ -1,6 +1,6 @@
+ # For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [m68k_const.rb]
+ 
+-module Unicorn
++module UnicornEngine
+ 
+ # M68K registers
+ 
+diff --git a/bindings/ruby/unicorn_gem/lib/unicorn/mips_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/mips_const.rb
+similarity index 99%
+rename from bindings/ruby/unicorn_gem/lib/unicorn/mips_const.rb
+rename to bindings/ruby/unicorn_gem/lib/unicorn_engine/mips_const.rb
+index d92e94e5..2c2c727f 100644
+--- a/bindings/ruby/unicorn_gem/lib/unicorn/mips_const.rb
++++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/mips_const.rb
+@@ -1,6 +1,6 @@
+ # For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [mips_const.rb]
+ 
+-module Unicorn
++module UnicornEngine
+ 
+ # MIPS registers
+ 
+diff --git a/bindings/ruby/unicorn_gem/lib/unicorn/sparc_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/sparc_const.rb
+similarity index 98%
+rename from bindings/ruby/unicorn_gem/lib/unicorn/sparc_const.rb
+rename to bindings/ruby/unicorn_gem/lib/unicorn_engine/sparc_const.rb
+index 85d9eef1..b5c42470 100644
+--- a/bindings/ruby/unicorn_gem/lib/unicorn/sparc_const.rb
++++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/sparc_const.rb
+@@ -1,6 +1,6 @@
+ # For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [sparc_const.rb]
+ 
+-module Unicorn
++module UnicornEngine
+ 
+ # SPARC registers
+ 
+diff --git a/bindings/ruby/unicorn_gem/lib/unicorn/unicorn_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb
+similarity index 98%
+rename from bindings/ruby/unicorn_gem/lib/unicorn/unicorn_const.rb
+rename to bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb
+index e8f37908..e2ad8c89 100644
+--- a/bindings/ruby/unicorn_gem/lib/unicorn/unicorn_const.rb
++++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb
+@@ -1,6 +1,6 @@
+ # For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [unicorn_const.rb]
+ 
+-module Unicorn
++module UnicornEngine
+ 	UC_API_MAJOR = 1
+ 
+ 	UC_API_MINOR = 0
+diff --git a/bindings/ruby/unicorn_gem/lib/unicorn/version.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/version.rb
+similarity index 100%
+rename from bindings/ruby/unicorn_gem/lib/unicorn/version.rb
+rename to bindings/ruby/unicorn_gem/lib/unicorn_engine/version.rb
+diff --git a/bindings/ruby/unicorn_gem/lib/unicorn/x86_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/x86_const.rb
+similarity index 99%
+rename from bindings/ruby/unicorn_gem/lib/unicorn/x86_const.rb
+rename to bindings/ruby/unicorn_gem/lib/unicorn_engine/x86_const.rb
+index f85ae21a..5d7fd63a 100644
+--- a/bindings/ruby/unicorn_gem/lib/unicorn/x86_const.rb
++++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/x86_const.rb
+@@ -1,6 +1,6 @@
+ # For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [x86_const.rb]
+ 
+-module Unicorn
++module UnicornEngine
+ 
+ # X86 registers
+ 
+diff --git a/bindings/ruby/unicorn_gem/unicorn.gemspec b/bindings/ruby/unicorn_gem/unicorn.gemspec
+index e959ed6f..91d77fa7 100644
+--- a/bindings/ruby/unicorn_gem/unicorn.gemspec
++++ b/bindings/ruby/unicorn_gem/unicorn.gemspec
+@@ -1,10 +1,10 @@
+ # coding: utf-8
+ lib = File.expand_path('../lib', __FILE__)
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+-require 'unicorn/version'
++require 'unicorn_engine/version'
+ 
+ Gem::Specification.new do |spec|
+-  spec.name          = "unicorn"
++  spec.name          = "unicorn_engine"
+   spec.version       = Unicorn::VERSION
+   spec.authors       = ["Sascha Schirra"]
+   spec.email         = ["sashs at scoding.de"]
+@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
+   spec.description   = %q{Ruby binding for Unicorn-Engine <unicorn-engine.org>}
+   spec.homepage      = "https://unicorn-engine.org"
+ 
+-  spec.files         = Dir["lib/unicorn/*.rb"] + Dir["ext/unicorn.c"] + Dir["ext/unicorn.h"] + Dir["ext/extconf.rb"]
++  spec.files         = Dir["lib/unicorn_engine/*.rb"] + Dir["ext/unicorn.c"] + Dir["ext/unicorn.h"] + Dir["ext/extconf.rb"]
+   spec.require_paths = ["lib","ext"]
+   spec.extensions    = ["ext/extconf.rb"]
+   spec.add_development_dependency "bundler", "~> 1.11"
+diff --git a/bindings/ruby/Makefile b/bindings/ruby/Makefile
+index 679a1835..4dda0107 100644
+--- a/bindings/ruby/Makefile
++++ b/bindings/ruby/Makefile
+@@ -5,7 +5,7 @@
+ # Use bundle install && rake to install gem and test
+ install: gen_const
+ 	cd unicorn_gem && rake build
+-	cd unicorn_gem && gem install --local pkg/unicorn_engine-1.0.0.gem
++	cd unicorn_gem && gem install --local pkg/unicorn-engine-1.0.0.gem
+ 
+ gen_const:
+ 	cd .. && python const_generator.py ruby
+diff --git a/bindings/ruby/unicorn_gem/unicorn.gemspec b/bindings/ruby/unicorn_gem/unicorn.gemspec
+index 91d77fa7..3c91c48b 100644
+--- a/bindings/ruby/unicorn_gem/unicorn.gemspec
++++ b/bindings/ruby/unicorn_gem/unicorn.gemspec
+@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+ require 'unicorn_engine/version'
+ 
+ Gem::Specification.new do |spec|
+-  spec.name          = "unicorn_engine"
++  spec.name          = "unicorn-engine"
+   spec.version       = Unicorn::VERSION
+   spec.authors       = ["Sascha Schirra"]
+   spec.email         = ["sashs at scoding.de"]
+diff --git a/bindings/ruby/Makefile b/bindings/ruby/Makefile
+index 4dda0107..9d52de94 100644
+--- a/bindings/ruby/Makefile
++++ b/bindings/ruby/Makefile
+@@ -5,7 +5,7 @@
+ # Use bundle install && rake to install gem and test
+ install: gen_const
+ 	cd unicorn_gem && rake build
+-	cd unicorn_gem && gem install --local pkg/unicorn-engine-1.0.0.gem
++	cd unicorn_gem && gem install --local pkg/unicorn-engine-1.0.1.gem
+ 
+ gen_const:
+ 	cd .. && python const_generator.py ruby
+diff --git a/bindings/ruby/unicorn_gem/lib/unicorn_engine/version.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/version.rb
+index ad18d0e7..bca7c5fa 100644
+--- a/bindings/ruby/unicorn_gem/lib/unicorn_engine/version.rb
++++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/version.rb
+@@ -1,3 +1,3 @@
+ module Unicorn
+-  VERSION = "1.0.0"
++  VERSION = "1.0.1"
+ end
+diff --git a/bindings/ruby/unicorn_gem/unicorn.gemspec b/bindings/ruby/unicorn_gem/unicorn-engine.gemspec
+similarity index 100%
+rename from bindings/ruby/unicorn_gem/unicorn.gemspec
+rename to bindings/ruby/unicorn_gem/unicorn-engine.gemspec


More information about the arch-commits mailing list