Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
431d3229
Commit
431d3229
authored
Jun 08, 2017
by
lyxell
Committed by
GitHub
Jun 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #716 from jam7/strip-some-common-packages
Strip some common packages
parents
31b2f7a4
1e112049
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
23 deletions
+61
-23
packages/bison.rb
packages/bison.rb
+14
-6
packages/expect.rb
packages/expect.rb
+7
-1
packages/ncurses.rb
packages/ncurses.rb
+20
-8
packages/ncursesw.rb
packages/ncursesw.rb
+20
-8
No files found.
packages/bison.rb
View file @
431d3229
...
...
@@ -3,19 +3,27 @@ require 'package'
class
Bison
<
Package
description
'Bison is a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables.'
homepage
'http://www.gnu.org/software/bison/'
version
'3.0.4'
source_url
'http://mirror.keystealth.org/gnu/bison/bison-3.0.4.tar.
g
z'
source_sha1
'
ec1f2706a7cfedda06d29dc394b03e092a1e1b74
'
version
'3.0.4
-1
'
source_url
'http://mirror.keystealth.org/gnu/bison/bison-3.0.4.tar.
x
z'
source_sha1
'
8270497aad88c7dd4f2c317298c50513fb0c3c8e
'
depends_on
'diffutils'
depends_on
'm4'
depends_on
'diffutils'
=>
:build
depends_on
'm4'
=>
:build
depends_on
'perl'
=>
:build
# `make check` requires flex, but it causes dependency loop. so, commenting it out.
# depends_on 'flex' => :build
def
self
.
build
system
'./configure --prefix=/usr/local'
system
"make"
system
"find . -name '*.a' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
end
def
self
.
check
system
"make check"
end
end
packages/expect.rb
View file @
431d3229
...
...
@@ -3,7 +3,7 @@ require 'package'
class
Expect
<
Package
description
'Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc.'
homepage
'http://expect.sourceforge.net/'
version
'5.45'
version
'5.45
-1
'
source_url
'http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz'
source_sha1
'e634992cab35b7c6931e1f21fbb8f74d464bd496'
...
...
@@ -12,9 +12,15 @@ class Expect < Package
def
self
.
build
system
"./configure"
,
"--prefix=/usr/local"
system
"make"
system
"find . -name '*.so' -print | xargs strip -S"
system
"strip expect"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
system
"make test"
end
end
packages/ncurses.rb
View file @
431d3229
...
...
@@ -3,24 +3,36 @@ require 'package'
class
Ncurses
<
Package
description
'The ncurses (new curses) library is a free software emulation of curses in System V Release 4.0 (SVr4), and more.'
homepage
'https://www.gnu.org/software/ncurses/'
version
'6.0-
1
'
version
'6.0-
2
'
source_url
'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1
'acd606135a5124905da770803c05f1f20dd3b21c'
depends_on
"diffutils"
depends_on
"diffutils"
=>
:build
depends_on
"ncursesw"
def
self
.
build
system
'./configure
'
\
'
CFLAGS=" -fPIC" '
\
'--without-
debug '
\
'--
prefix=/usr/local '
\
'--with-
shared '
\
'--with
-cxx-shared
'
system
'./configure
'
,
'
--prefix=/usr/local'
,
'--without-
normal'
,
'--
with-shared'
,
'--with-
cxx-shared'
,
'--with
out-debug
'
system
"make"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip binaries
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/clear"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/infocmp"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tabs"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tic"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tput"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tset"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/toe"
# strip libraries here since `make install` re-link libraries again
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'lib*.so.*' -print | xargs strip -S"
end
end
packages/ncursesw.rb
View file @
431d3229
require
'package'
class
Ncursesw
<
Package
version
'6.0'
version
'6.0
-2
'
source_url
'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1
'acd606135a5124905da770803c05f1f20dd3b21c'
depends_on
"diffutils"
depends_on
"diffutils"
=>
:build
def
self
.
build
# Check ncurses doesn't conflict with ncrusesw
...
...
@@ -18,17 +18,29 @@ class Ncursesw < Package
end
end
# Build ncursesw
system
'./configure
'
\
'
CFLAGS=" -fPIC" '
\
'--without-
debug '
\
'--
prefix=/usr/local '
\
'--with-
shared '
\
'--with
-cxx-shared '
\
system
'./configure
'
,
'
--prefix=/usr/local'
,
'--without-
normal'
,
'--
with-shared'
,
'--with-
cxx-shared'
,
'--with
out-debug'
,
'--enable-widec'
system
"make"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# remove binary files which are installed by ncurses also
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/clear"
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/infocmp"
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tabs"
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tic"
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tput"
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tset"
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/toe"
# strip libraries here since `make install` re-link libraries again
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'lib*.so.*' -print | xargs strip -S"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment