Commit Graph

129 Commits

Author SHA1 Message Date
Kazushi (Jam) Marukawa
ef2a9302cb Change default option for xz to use multi thread 2017-09-09 17:43:57 +09:00
Ed Reel
d28658a5ea Update crew to explain multiple argument handling 2017-09-09 17:38:55 +09:00
Yan Couto
64748405c0 Failing ASAP
Sudo check is done as early in the code as possible.
2017-09-07 18:19:42 +09:00
Yan Couto
72d807aacd Refactoring crew
Changelog:
- Moved string colorization to lib/color.rb
- Moved constants to lib/const.rb
- Moved sudo checking before docopt checking.
- Changed docopt require to be relative
- Fixed stray tabs
2017-09-07 18:19:42 +09:00
Kazushi (Jam) Marukawa
38a1db2292 Merge branch 'master' into master 2017-08-30 20:06:59 +09:00
Kazushi (Jam) Marukawa
7623cd4d11 Correct aarch64 ARCH_LIB. 2017-08-30 20:04:49 +09:00
lyxell
f45659cae6 Merge pull request #1152 from jam7/update-postinstall-process
Update postinstall process
2017-08-28 17:12:33 +02:00
Damian Montero
2ef350769b Merge pull request #1079 from jam7/crew-with-docopt
Change crew to accept multiple arguments by using docopt
2017-08-26 15:12:08 -04:00
Kazushi (Jam) Marukawa
ce7b0915cc Change crew to perform postinstall in dest_dir to avoid confusions between source build and binary distribution. 2017-08-26 09:09:26 +09:00
Jack Danger
77065764f9 Fixing nil error with missing target_dir
Prior to this change when `@pkg.is_fake?` evaluated to true the code would execute `post_install` with a `nil` `target_dir` variable, causing a nil error on `Dir.chdir(nil)`
2017-08-25 15:51:54 +09:00
Kazushi (Jam) Marukawa
d5252be86a Change crew and lib/package.rb to add postinstall process. 2017-08-19 11:18:17 +09:00
Kazushi (Jam) Marukawa
ff7b82aa9d Change crew to use -v|--verbose isntead of -d|--desc for search command. 2017-08-18 08:21:19 +09:00
Kazushi (Jam) Marukawa
7d13d11a36 Change crew to use lib/docopt 2017-08-18 08:17:12 +09:00
Kazushi (Jam) Marukawa
513709d6c3 Modify spelling and separate -k and -s option to make it possible to specify both. 2017-08-18 08:17:12 +09:00
Kazushi (Jam) Marukawa
61a759d592 modify upgrade command little related to -s option 2017-08-18 08:17:12 +09:00
Kazushi (Jam) Marukawa
e75361c94a Add -s, --build-from-source option for install and upgrade 2017-08-15 09:20:32 +09:00
Ed Reel
ee15703c0d Add lha, rar and xz extentions to exclude and sort alphabetically 2017-08-14 10:40:42 +09:00
Ed Reel
ab93e6a445 Strip binaries but not compressed archives 2017-08-14 10:40:42 +09:00
Kazushi (Jam) Marukawa
7185933826 Change crew to use docopt. 2017-08-13 00:03:01 +09:00
Ed Reel
4ac1c4d074 Don't increment the crew version 2017-08-10 14:29:27 +09:00
Ed Reel
3e52f3d8cd Add CREW_DEST_PREFIX and CREW_DEST_LIB_PREFIX constants to crew command 2017-08-10 14:29:27 +09:00
Guannan Wang @ super-lollipop
2fdffb8f3b Updated with proper curl command line options. 2017-08-04 21:44:40 -04:00
Guannan Wang @ super-lollipop
daa1636553 Updated to use progress bar, instead of download statistics. 2017-07-31 00:14:07 -04:00
Guannan Wang @ super-lollipop
e2d9731893 Updated to use curl insteal of wget. 2017-07-30 22:55:49 -04:00
lyxell
a12b300c5a Merge pull request #815 from jam7/refactor/crew-no-auto-buildessential
Change crew to not automatically install buildessential
2017-07-04 15:14:02 +02:00
Kazushi (Jam) Marukawa
bd69412e9c Change crew to remove sha1 related stuff. 2017-07-03 22:33:24 +09:00
lyxell
cc9e31f4f3 Merge pull request #833 from jam7/refactor/crew-search
Change crew to check internal hash table instead of directory
2017-07-02 16:56:32 +02:00
Kazushi (Jam) Marukawa
899d789aa1 Change crew to not ignore error messages and check binary existence 2017-07-01 12:39:06 +09:00
Kazushi (Jam) Marukawa
817b4ea02b Change crew to compress info also 2017-07-01 12:39:06 +09:00
Kazushi (Jam) Marukawa
89b18e3b3d Change crew to use compressdoc in order to compress manual files. 2017-07-01 12:39:06 +09:00
Kazushi (Jam) Marukawa
84757cdbfc Change crew to add CREW_NOT_COMPRESS and compress manual files unless CREW_NOT_COMPRESS is defined 2017-07-01 12:39:06 +09:00
Kazushi (Jam) Marukawa
b6ef891292 Change to use sort in regexp_search 2017-07-01 09:38:12 +09:00
Kazushi (Jam) Marukawa
88d19b4f18 Change crew to check internal hash table instead of directory 2017-07-01 09:34:28 +09:00
Kazushi (Jam) Marukawa
a714c79095 Change crew to not ignore error messages.
- change to check existence of strip to avoid not found errors
 - change to use xargs -r option to avoid empty input errors
 - change to chack magic number of files to avoid strip wrong-format errors
2017-06-28 22:47:27 +09:00
Kazushi (Jam) Marukawa
466f854531 Add check routine before hash references. 2017-06-28 18:48:52 +09:00
Kazushi (Jam) Marukawa
3bc0a01ab2 Change crew and lib/package.rb to support sha256. Currently crew check either sha256 or sha1. 2017-06-27 22:45:12 +09:00
Kazushi (Jam) Marukawa
79da9fb74d Change crew to not automatically install buildessential 2017-06-27 21:05:39 +09:00
Kazushi (Jam) Marukawa
a1f2b65f03 Change crew to add CREW_NOT_STRIP constant and strip binaries and libraries unless CREW_NOT_STRIP is defined. 2017-06-26 00:30:58 +09:00
Damian Montero
f7b92122fa Merge pull request #791 from jam7/correct-dependency-problems
Correct dependency problems
2017-06-25 03:09:56 -04:00
Kazushi (Jam) Marukawa
23b9074947 Change crew to check dependencies correctly under crew build 2017-06-24 08:20:43 +09:00
Kazushi (Jam) Marukawa
fca3ca5bb2 Change crew to upgrade packages belong to the dependency order 2017-06-24 08:18:46 +09:00
Kazushi (Jam) Marukawa
c666b648a9 Change crew to add a CREW_LIB_PREFIX constant which refers "/usr/local/lib" or "/usr/local/lib64" depends on ARCH. 2017-06-23 17:42:25 +09:00
Ed Reel
45c01ce8e3 Improve crew search to include the description
- Update 'crew help search' command to explain improvements
2017-06-17 16:10:23 -05:00
Damian Montero
2c8141eaa8 Merge pull request #736 from uberhacker/fix-crew-archive-hidden-files
Fix crew command to include hidden files in the archive
2017-06-15 12:08:50 -04:00
Ed Reel
af7e0400c8 Fix crew command to include hidden files in the archive 2017-06-13 20:21:24 -05:00
Kazushi (Jam) Marukawa
e33561ba48 Modified little bit to allow users to choose extra information.
Usage is like below.

```
$ crew search vi
(i) vim: Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.
(i) vidstab: Transcode video stabilization plugin.
vifm: Vifm is an ncurses based file manager with vi like keybindings/modes/options/commands/configuration, which also borrows some useful ideas from mutt.
(i) libxvid: The free video codec that is strong in compression and quality.
neovim: Neovim is a refactor, and sometimes redactor, in the tradition of Vim (which itself derives from Stevie).
$ crew search vi extra
(i) vim: Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.
http://www.vim.org/
version 8.0-1
(i) vidstab: Transcode video stabilization plugin.
http://public.hronopik.de/vid.stab/
version 0.98b
vifm: Vifm is an ncurses based file manager with vi like keybindings/modes/options/commands/configuration, which also borrows some useful ideas from mutt.
https://vifm.info/
version 0.8.2
(i) libxvid: The free video codec that is strong in compression and quality.
https://www.xvid.com/
version 1.3.4
neovim: Neovim is a refactor, and sometimes redactor, in the tradition of Vim (which itself derives from Stevie).
https://neovim.io/
version 0.1.7
$ crew search ^vim$ extra
(i) vim: Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.
http://www.vim.org/
version 8.0-1
```
2017-06-14 08:24:53 +09:00
Casey Strouse
6918a2c488 Refactor search logic to support regex
`crew search` use to only return a single result if your query string
matched a package name exactly.

`crew search` now supports regex.

chronos@localhost / $ crew search ^lib
Found libpcap, version 1.8.1
Found libjpeg, version 9.1
Found libunwind, version 1.1
Found libxslt, version 1.1.28
Found libffi, version 3.0.13-1
Found libssh2, version 1.4.3
Found libtool, version 2.4.6
Found libpipeline, version 1.4.1
Found libevent, version 2.0.22
Found libxml2, version 2.9.2
Found libgd, version 2.0.33
Found libtiff, version 4.0.7
Found libpng, version 1.6.26
Found libsigsegv, version 2.10
2017-06-14 08:20:14 +09:00
Ed Reel
5ab0970cf6 Add colorization to status messages
- Fix grammar
2017-06-11 15:04:59 -05:00
Ed Reel
7b5a3cc285 Enhance crew search command
- Add colorization
  - Add description and homepage metadata in search results
2017-06-10 18:25:25 -05:00
Kazushi (Jam) Marukawa
864d2b33e2 Change crew to divide expand_dependencies and resolve_dependencies functions. 2017-06-08 21:58:48 +09:00