Skip to content

Commit bab9911

Browse files
authored
Merge pull request chromebrew#393 from jam7/remove-shortarch
Remove all SHORTARCH related stuff
2 parents a733dc4 + 0d0bc5b commit bab9911

21 files changed

Lines changed: 38 additions & 54 deletions

crew

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ else
2323
end
2424

2525
ARCH = `uname -m`.strip
26-
#SHORTARCH = `getconf LONG_BIT`.strip # will refactor this line in the future
27-
case ARCH
28-
when "i686"
29-
SHORTARCH="32"
30-
when "x86_64"
31-
SHORTARCH="64"
32-
when "armv7l"
33-
SHORTARCH="32"
34-
else
35-
SHORTARCH="32"
36-
end
3726

3827
$LOAD_PATH.unshift "#{CREW_LIB_PATH}lib"
3928

lib/package.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ def self.build
2828
end
2929

3030
def self.system(*args)
31-
# strip -m32 option and convert lib32 to lib for the case of ARM to avoid SHORTARCH flood
32-
if ARCH == "armv7l"
33-
args = args.map {|s| s.gsub("-m32", "")}
34-
args = args.map {|s| s.gsub("lib32", "lib")}
35-
end
3631
# add "-j#{CREW_NPROC}" argument to "make"
3732
if args[0] == "make"
3833
# modify ["make", "args", ...] into ["make", "-j#{CREW_NPROC}", "args", ...]

packages/bc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
require 'package'
22

33
class Bc < Package
4-
version '1.06'
4+
version '1.06-1'
55
source_url 'http://ftp.gnu.org/gnu/bc/bc-1.06.tar.gz'
66
source_sha1 'c8f258a7355b40a485007c40865480349c157292'
77

88
depends_on 'flex'
99

1010
def self.build
11-
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/"
11+
system "./configure"
1212
system "make"
1313
end
1414

packages/clisp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
require 'package'
22

33
class Clisp < Package
4-
version '2.49'
4+
version '2.49-1'
55
source_url 'ftp://ftp.gnu.org/pub/gnu/clisp/release/2.49/clisp-2.49.tar.bz2'
66
source_sha1 '7e8d585ef8d0d6349ffe581d1ac08681e6e670d4'
77

88
depends_on 'libsigsegv'
99
depends_on 'ffcall'
1010

1111
def self.build
12-
system "./configure CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
12+
system "./configure CFLAGS=\" -fPIC\""
1313
FileUtils.cd('src') do
1414
system "ulimit -s 16384"
1515
system "make"

packages/ffcall.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
require 'package'
22

33
class Ffcall < Package
4-
version '1.10'
4+
version '1.10-1'
55
source_url 'http://www.haible.de/bruno/gnu/ffcall-1.10.tar.gz'
66
source_sha1 '6b4fdc7bd38b434bbf3d65508a3d117fc8b349f3'
77

88
def self.build
9-
system "./configure --prefix=/usr/local --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
9+
system "./configure --prefix=/usr/local CFLAGS=\" -fPIC\""
1010
system "make"
1111
end
1212

packages/flex.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
require 'package'
22

33
class Flex < Package
4-
version '2.5.39'
4+
version '2.5.39-1'
55
source_url 'http://fossies.org/linux/misc/flex-2.6.0.tar.gz'
66
source_sha1 'cfe10b5de4893ced356adc437e78018e715818c3'
77

88
depends_on 'm4'
99
depends_on 'bison'
1010

1111
def self.build
12-
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
12+
system "./configure CFLAGS=\" -fPIC\""
1313
system "make"
1414
end
1515

packages/fontconfig.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
require 'package'
22

33
class Fontconfig < Package
4-
version '2.11.94'
4+
version '2.11.94-1'
55
source_url 'http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.94.tar.gz'
66
source_sha1 '3748d8a2b9cf8052dbd003f524d829157f1ead83'
77

88
depends_on 'pkgconfig'
99
depends_on 'freetype'
1010

1111
def self.build
12-
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
12+
system "./configure CFLAGS=\" -fPIC\""
1313
system "make"
1414
end
1515

packages/freetype.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
require 'package'
22

33
class Freetype < Package
4-
version '2.6'
4+
version '2.6-1'
55
source_url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.6.tar.gz'
66
source_sha1 '12dd3267af62cccc32045ed99984f3d8a8ddbf90'
77

88
def self.build
9-
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
9+
system "./configure CFLAGS=\" -fPIC\""
1010
system "make"
1111
end
1212

packages/gdal.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'package'
22

33
class Gdal < Package
4-
version '1.11.2'
4+
version '1.11.2-1'
55
source_url 'http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz'
66
source_sha1 '6f3ccbe5643805784812072a33c25be0bbff00db'
77

@@ -12,7 +12,7 @@ class Gdal < Package
1212
depends_on 'libxml2'
1313

1414
def self.build
15-
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\" --with-png=internal --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-curl=/usr/local/bin/curl-config --with-geos=/usr/local/bin/geos-config --with-static-proj4=/usr/local/share/proj --with-python"
15+
system "./configure CFLAGS=\" -fPIC\" --with-png=internal --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-curl=/usr/local/bin/curl-config --with-geos=/usr/local/bin/geos-config --with-static-proj4=/usr/local/share/proj --with-python"
1616
system "make"
1717
end
1818

packages/geos.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
require 'package'
22

33
class Geos < Package
4-
version '3.4.2'
4+
version '3.4.2-1'
55
source_url 'http://download.osgeo.org/geos/geos-3.4.2.tar.bz2'
66
source_sha1 'b8aceab04dd09f4113864f2d12015231bb318e9a'
77

88
def self.build
9-
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
9+
system "./configure CFLAGS=\" -fPIC\""
1010
system "make"
1111
end
1212

0 commit comments

Comments
 (0)