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
2fb4668a
Commit
2fb4668a
authored
Feb 18, 2017
by
lyxell
Committed by
GitHub
Feb 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #490 from jam7/ncurses-ncursesw
Change to instal both ncurses ncursesw
parents
9836f5aa
e6857aa2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
3 deletions
+37
-3
packages/ncurses.rb
packages/ncurses.rb
+3
-3
packages/ncursesw.rb
packages/ncursesw.rb
+34
-0
No files found.
packages/ncurses.rb
View file @
2fb4668a
require
'package'
require
'package'
class
Ncurses
<
Package
class
Ncurses
<
Package
version
'6.0'
version
'6.0
-1
'
source_url
'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_url
'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1
'acd606135a5124905da770803c05f1f20dd3b21c'
source_sha1
'acd606135a5124905da770803c05f1f20dd3b21c'
depends_on
"diffutils"
depends_on
"diffutils"
depends_on
"ncursesw"
def
self
.
build
def
self
.
build
system
'./configure '
\
system
'./configure '
\
...
@@ -13,8 +14,7 @@ class Ncurses < Package
...
@@ -13,8 +14,7 @@ class Ncurses < Package
'--without-debug '
\
'--without-debug '
\
'--prefix=/usr/local '
\
'--prefix=/usr/local '
\
'--with-shared '
\
'--with-shared '
\
'--with-cxx-shared '
\
'--with-cxx-shared '
'--enable-widec'
system
"make"
system
"make"
end
end
...
...
packages/ncursesw.rb
0 → 100644
View file @
2fb4668a
require
'package'
class
Ncursesw
<
Package
version
'6.0'
source_url
'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1
'acd606135a5124905da770803c05f1f20dd3b21c'
depends_on
"diffutils"
def
self
.
build
# Check ncurses doesn't conflict with ncrusesw
if
File
.
exist?
CREW_CONFIG_PATH
+
"meta/ncurses.filelist"
if
`grep include/ncursesw
#{
CREW_CONFIG_PATH
}
meta/ncurses.filelist`
!=
''
puts
puts
"PLEASE PERFORMS `crew upgrade ncurses` OR `sudo crew remove ncurses` FIRST"
puts
exit
1
end
end
# Build ncursesw
system
'./configure '
\
'CFLAGS=" -fPIC" '
\
'--without-debug '
\
'--prefix=/usr/local '
\
'--with-shared '
\
'--with-cxx-shared '
\
'--enable-widec'
system
"make"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
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