-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtools.mk
94 lines (78 loc) · 2.71 KB
/
tools.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
ifndef TOOLS_MK
TOOLS_MK=tools.mk
include init.mk
tools: eix util-linux local-overlay layman portage-tools console-tools cmake \
ruby vim tmux tig fabric
# ----------------------------------------------------------------------------
eix:
${EMERGE} -uN eix
eix-update
#ifeq ($(shell test -f ${EPREFIX}/etc/eix-sync.conf && grep "^-e" ${EPREFIX}/etc/eix-sync.conf), )
#echo -e '\055e' >> ${EPREFIX}/etc/eix-sync.conf
#endif
${EIXSYNC}
util-linux:
# util-linux workaround
#echo "=sys-apps/util-linux-2.18-r1 **" >> ${EPREFIX}/etc/portage/package.keywords/util-linux
#${EMERGE} -uN util-linux
${EMERGE} -uN util-linux
local-overlay: eix
mkdir -p ${EPREFIX}/usr/local/portage
cp -va files/local_overlay/* ${EPREFIX}/usr/local/portage/
# XXX: One could use a ifeq here
echo "PORTDIR_OVERLAY=\"${EPREFIX}/usr/local/portage/\"" >> ${EPREFIX}/etc/make.conf
${EIXSYNC}
layman: eix
${EMERGE} -uN layman
layman -S
-layman -a sekyfsr
# XXX: One could use a ifeq here
echo "source ${EPREFIX}/var/lib/layman/make.conf" >> ${EPREFIX}/etc/make.conf
${EIXSYNC}
#portage-tools: local-overlay autounmask
portage-tools: local-overlay
${EMERGE} -uN app-portage/portage-utils
${EMERGE} -uN app-portage/gentoolkit
${EMERGE} -uN app-portage/gentoolkit-dev
#autounmask:
#echo "=dev-perl/PortageXS-0.02.09 **" >> ${EPREFIX}/etc/portage/package.keywords/PortageXS-0.02.09
#echo ">dev-perl/PortageXS-0.02.09" >> ${EPREFIX}/etc/portage/package.mask/PortageXS-0.02.09+
## XXX: ebuild needs to be patched (and pushed upstream) to prepend $EPREFIX
#${EMERGE} -uN autounmask
console-tools:
${EMERGE} -uN keychain
${EMERGE} -uN htop
${EMERGE} -uN ncdu
${EMERGE} -uN zsh app-shells/zsh-completion
# * If you want to enable Portage completions and Gentoo prompt,
# * ${EMERGE} app-shells/zsh-completion and add
# * autoload -U compinit promptinit
# * compinit
# * promptinit; prompt gentoo
# * to your ~/.zshrc
# *
# * Also, if you want to enable cache for the completions, add
# * zstyle ':completion::complete:*' use-cache 1
# * to your ~/.zshrc
cmake:
${EMERGE} -uN libarchive
#cp -vf files/etc/portage/package.use/cmake \
#${EPREFIX}/etc/portage/package.use/cmake
cp -vf {files,${EPREFIX}}/etc/portage/package.use/cmake
${EMERGE} -uN cmake
vim:
echo "app-editors/vim bash-completion vim-pager python ruby perl" >> ${EPREFIX}/etc/portage/package.use/vim
${EMERGE} -uN vim vim-core
eselect bashcomp enable --global vim &> /dev/null | exit 0
ruby:
cp -f {files,${EPREFIX}}/etc/portage/package.use/ruby
cp -f {files,${EPREFIX}}/etc/portage/package.mask/ruby
${EMERGE} -uN -j dev-lang/ruby dev-ruby/rubygems
eselect ruby set ruby18
tmux:
${EMERGE} -uN tmux
tig:
${EMERGE} -uN tig
fabric: pip
pip install -vU fabric
endif