-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·824 lines (718 loc) · 26.8 KB
/
Makefile
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
_default: help
include init.mk
include machines.mk
me=$(subst install/,,$@)
help: _list
_list:
@echo Available targets:
@echo ------------------
@./make-list-targets.sh -f Makefile | grep -v '_.*' | grep -v 'install\/' | cut -d':' -f1
clean:
rm -vrf install/*
update: install/portage install/eix
ifeq (${NO_EIX_SYNC},)
eix-sync -q
endif
ifeq ($(strip ${EPREFIX}), )
ifeq (${NO_SECURITY},)
glsa-check -q -t all
glsa-check -q -f all
endif
ifeq (${NO_ASK},)
${EMERGE} --ask -qtuDN -q -j --with-bdeps y --keep-going world system
${EMERGE} --ask --depclean -q # -tv
revdep-rebuild -q -i -- --ask
else
${EMERGE} -qtuDN -q -j --with-bdeps y --keep-going world system
${EMERGE} --depclean -q #-tv
revdep-rebuild -q -i
endif
endif
eclean-dist -d
eclean distfiles
#eix-test-obsolete
emaint --check world && emaint --fix world
dispatch-conf
# -- Portage
install/portage: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j sys-apps/portage app-portage/portage-utils app-portage/gentoolkit
touch $@
portage: install/portage
install/portage-dirs:
@mkdir -p ${EPREFIX}/etc/portage/package.use
@mkdir -p ${EPREFIX}/etc/portage/package.keywords
@mkdir -p ${EPREFIX}/etc/portage/package.mask
@mkdir -p ${EPREFIX}/etc/portage/package.unmask
@mkdir -p ${EPREFIX}/etc/portage/package.license
@mkdir -p ${EPREFIX}/etc/portage/package.env
@mkdir -p ${EPREFIX}/etc/portage/env
@touch $@
portage-dirs: install/portage-dirs
autounmask: portage-dirs
@touch ${EPREFIX}/etc/portage/package.use/z_autounmask
@touch ${EPREFIX}/etc/portage/package.keywords/z_autounmask
@touch ${EPREFIX}/etc/portage/package.mask/z_autounmask
@touch ${EPREFIX}/etc/portage/package.unmask/z_autounmask
@touch ${EPREFIX}/etc/portage/package.license/z_autounmask
ifeq ($(shell if grep -e '^EMERGE_DEFAULT_OPTS = "$${EMERGE_DEFAULT_OPTS} --autounmask-write=y"' ${EPREFIX}/etc/make.conf; then echo true; else echo false; fi), false)
echo 'EMERGE_DEFAULT_OPTS = "$${EMERGE_DEFAULT_OPTS} --autounmask-write=y"' >> ${EPREFIX}/etc/make.conf
endif
install/pysqlite: install/portage-dirs install/python
#cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j dev-python/pysqlite
touch $@
pysqlite: install/pysqlite
install/portage-sqlite: install/portage-dirs install/pysqlite
# -- portage sql cache
# See:
# http://en.gentoo-wiki.com/wiki/Portage_SQLite_Cache
# http://www.gentoo-wiki.info/TIP_speed_up_portage_with_sqlite
# http://forums.gentoo.org/viewtopic.php?t=261580
#ifneq ($(shell grep -e '^FEATURES.*=.*metadata-transfer' ${EPREFIX}/etc/make.conf &> /dev/null && echo true), true)
ifneq ($(shell test -f ${EPREFIX}/var/cache/edb/dep/.sqlite.done && echo true),true)
cp -f {files,${EPREFIX}}/etc/portage/modules
echo 'FEATURES="$${FEATURES} metadata-transfer"' >> ${EPREFIX}/etc/make.conf
rm -rf ${EPREFIX}/var/cache/edb/dep
${EMERGE} --metadata
touch ${EPREFIX}/var/cache/edb/dep/.sqlite.done
make eix
cp -f files/etc/eixrc.sqlite ${EPREFIX}/etc/eixrc
eix-sync -q
endif
touch $@
portage-sqlite: install/portage-sqlite
install/layman:
${EMERGE} -uN -q -j app-portage/layman
touch ${EPREFIX}/var/lib/layman/make.conf
grep -e '^source.*layman.*' ${EPREFIX}/etc/make.conf \
|| echo "source ${EPREFIX}/var/lib/layman/make.conf" >> ${EPREFIX}/etc/make.conf
cp -f {files,${EPREFIX}}/var/lib/layman/make.conf
cp -f {files,${EPREFIX}}/var/lib/layman/overlays.xml
@echo "$(layman -L | wc -l) overlays found"
layman -S
touch $@
layman: install/layman
install/eix: install/portage-dirs install/layman
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
${EMERGE} -uN -q -j app-portage/eix
cp -f {files,${EPREFIX}}/etc/eix-sync.conf
cp -f files/etc/eixrc.vanilla ${EPREFIX}/etc/eixrc
# eix-sync -q
touch $@
eix: install/eix
install/overlay-sekyfsr: OVERLAY=sekyfsr
install/overlay-sekyfsr: install/layman
-layman -d ${OVERLAY}
layman -a ${OVERLAY}
#layman -l | grep ${OVERLAY} || layman -a ${OVERLAY}
layman -q -s ${OVERLAY}
egencache --repo=${OVERLAY} --update
eix-sync -q
touch $@
overlay-sekyfsr: install/overlay-sekyfsr
# -- System
install/locale:
cp -f {files,${EPREFIX}}/etc/locale.gen
cp -f {files,${EPREFIX}}/etc/env.d/02locale
locale-gen -u
locale
env-update && source /etc/profile
touch $@
locale: install/locale
#gcc: GCC_VERSION=$(shell gcc-config -C -l | grep '*$$' | cut -d' ' -f 3)
install/gcc: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.unmask/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.env/${me}
cp -f {files,${EPREFIX}}/etc/portage/env/simple-cflags
${EMERGE} -uN -q '=sys-devel/gcc-4.2.4*'
ifeq ($(strip ${EPREFIX}), )
# -- gcc-4.5 (default)
gcc-config -l | grep "x86_64-pc-linux-gnu-4.5.3 \*" &> /dev/null \
|| \
(gcc-config -l \
&& ${EMERGE} -uN -q '=sys-devel/gcc-4.5.3-r2' \
&& gcc-config x86_64-pc-linux-gnu-4.5.3 \
&& gcc-config -l \
&& emerge --oneshot -q libtool)
#emerge -uN -q '=sys-devel/gcc-3.4.6-r2'
#emerge -uN -q '=sys-devel/gcc-4.1.2'
emerge -uN -q '=sys-devel/gcc-4.2.4-r1'
emerge -uN -q '=sys-devel/gcc-4.3.6-r1'
emerge -uN -q "=sys-devel/gcc-4.4*"
emerge -uN -q "=sys-devel/gcc-4.6*"
endif
touch $@
gcc: install/gcc
module-rebuild:
${EMERGE} -uN -q -j sys-kernel/module-rebuild
module-rebuild populate
# -- Network
bind:
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/$@
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
${EMERGE} -uN -q -j net-dns/bind
# -- Shell tools
install/parallel: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
${EMERGE} -uN -q -j sys-process/parallel
touch $@
parallel: install/parallel
install/wgetpaste:
cp -f {files,${EPREFIX}}/etc/wgetpaste.conf
${EMERGE} -uN -q -j app-text/wgetpaste
touch $@
wgetpaste: install/wgetpaste
install/gisty:
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j app-text/gisty
touch $@
gisty: install/gisty
# -- Editors
install/vim: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
FEATURES=-collision-protect ${EMERGE} -uN -q -j --oneshot app-admin/eselect-ruby
${EMERGE} -uN -q -j app-editors/vim
touch $@
vim: install/vim
gvim: portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/gvim
${EMERGE} -uN -q -j app-editors/gvim
# -- Desktop
gdm: portage-dirs xorg-server
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
cp -f {files,${EPREFIX}}/etc/conf.d/xdm
${EMERGE} -uN -q -j gnome-base/gdm
#rc-update add xdm default
install/feh: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j media-gfx/feh
touch $@
feh: install/feh
install/awesome: install/portage-dirs install/xorg-server install/feh
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/usr/share/xsessions/awesome.desktop
${EMERGE} -uN -q -j x11-wm/awesome
make fonts
touch $@
awesome: install/awesome
install/xdg:
command -v xdg-mime &> /dev/null || ${EMERGE} -uN -q -j x11-misc/xdg-utils
touch $@
xdg: install/xdg
xdg-config: xdg evince nautilus
mkdir -p ${HOME}/.local/share/applications/
xdg-mime default evince.desktop application/pdf
xdg-mime default nautilus-browser.desktop application/pdf
gthumb: portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
${EMERGE} -uN -q -j media-gfx/gthumb
install/evince: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j app-text/evince
touch $@
evince: install/evince
install/acroread: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
${EMERGE} -uN -q -j app-text/acroread
touch $@
acroread: install/acroread
nautilus: portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
command -v nautilus &> /dev/null || ${EMERGE} -uN -q -j gnome-base/nautilus
gnome-terminal: portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
${EMERGE} -uN -q -j x11-terms/gnome-terminal
make fonts
terminator: portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
${EMERGE} -uN -q -j x11-terms/terminator
make fonts
install/chromium: portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j www-client/chromium
chromium: install/chromium
adobe-flash: portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.license/$@
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
${EMERGE} -uN -q -j www-plugins/adobe-flash
# -- Python
install/python: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j dev-lang/python
eselect python set python2.7
ifneq ($(shell eselect python list | grep python | wc -l), 1)
#python-updater -- -q -j --with-bdeps y --keep-going
python-updater \
-dmanual -dpylibdir -dPYTHON_ABIS -dshared_linking -dstatic_linking \
-- -q -j --with-bdeps y --keep-going
#ifeq (${NO_ASK},)
#${EMERGE} --depclean -av -j
#revdep-rebuild -v -- --ask -j
#else
${EMERGE} -q --depclean -j
revdep-rebuild -q -- -j
#endif
#eselect python list | grep 'python2.7 *' || ( \
#eselect python set python2.7 \
#&& python-updater -- -q -j --with-bdeps y --keep-going \
#&& ${EMERGE} --depclean -av -q -j \
#&& revdep-rebuild -v -- --ask -q -j \
#)
endif
${EMERGE} -uN -q -j dev-python/setuptools
touch $@
python: install/python
install/pypy: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/pypy
touch $@
pypy: install/pypy
install/pip: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/pip
touch $@
pip: install/pip
install/setuptools: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/setuptools
touch $@
setuptools: install/setuptools
install/virtualenv: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
${EMERGE} -uN -q -j dev-python/virtualenv
touch $@
virtualenv: install/virtualenv
install/virtualenvwrapper: install/portage-dirs install/virtualenv
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
#USE_PYTHON='2.7' ${EMERGE} -uN -q -j dev-python/virtualenvwrapper
${EMERGE} -uN -q -j dev-python/virtualenvwrapper
touch $@
virtualenvwrapper: install/virtualenvwrapper
install/ipython: install/portage-dirs install/pyqt4
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/ipython
touch $@
ipython: install/ipython
install/ipdb: install/portage-dirs install/ipython
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/ipdb
touch $@
ipdb: install/ipdb
install/cython: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j dev-python/cython
touch $@
cython: install/cython
install/pep8: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/pep8
touch $@
pep8: install/pep8
install/autopep8: install/portage-dirs install/pep8
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/autopep8
touch $@
autopep8: install/autopep8
install/numpy: install/portage-dirs install/atlas
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j dev-python/numpy
touch $@
numpy: install/numpy
install/scipy: install/portage-dirs install/numpy install/atlas
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j sci-libs/scipy
touch $@
scipy: install/scipy
install/matplotlib: install/portage-dirs install/scipy
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
${EMERGE} -uN -q -j dev-python/matplotlib
touch $@
matplotlib: install/matplotlib
install/numexpr: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
ifeq ($(strip ${MKL_LICENSE}), )
sed -i -e "s/mkl//g" ${EPREFIX}/etc/portage/package.use/${me}
else
make mkl
endif
${EMERGE} -uN -q -j --onlydeps dev-python/numexpr
FEATURES=test ${EMERGE} -uN dev-python/numexpr
touch $@
numexpr: install/numexpr
install/joblib: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/joblib
touch $@
joblib: install/joblib
install/scikits.learn: install/portage-dirs install/numpy
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j sci-libs/scikits_learn
touch $@
scikits.learn: install/scikits.learn
install/scikits.image: install/portage-dirs install/numpy
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/pyfits
${EMERGE} -uN -q -j sci-libs/scikits_image
touch $@
scikits.image: install/scikits.image
install/Theano: install/portage-dirs install/numpy
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j sci-libs/Theano
touch $@
Theano: install/Theano
install/pytables: install/portage-dirs install/hdf5
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/pytables
touch $@
pytables: install/pytables
install/pymongo: install/portage-dirs
ifeq ($(strip ${EPREFIX}), )
make install/mongodb
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/pymongo
else
pip install -vU pymongo --user
endif
touch $@
pymongo: install/pymongo
install/pyqt4: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
${EMERGE} -uN -q -j dev-python/PyQt4
touch $@
pyqt4: install/pyqt4
pycuda: portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/$@
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
${EMERGE} -uN -q -j dev-python/pycuda
pyopencl: portage-dirs opencl
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/$@
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
${EMERGE} -uN -q -j dev-python/pyopencl
install/simplejson: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/simplejson
touch $@
simplejson: install/simplejson
install/fabric: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-python/fabric
touch $@
fabric: install/fabric
cgkit: portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/$@
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
${EMERGE} -uN -q -j dev-python/cgkit
# -- Scientific Libraries
install/atlas: install/portage-dirs install/overlay-sekyfsr
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.unmask/${me}
${EMERGE} -uN -q -j sys-power/cpufrequtils
cpufreq-set -g performance || true
${EMERGE} -uN virtual/blas sci-libs/blas-atlas
eselect blas list | grep 'atlas-threads \*' || eselect blas set atlas-threads || exit 0
eselect cblas list | grep 'atlas-threads \*' || eselect cblas set atlas-threads || exit 0
${EMERGE} -uN virtual/lapack sci-libs/lapack-atlas
eselect lapack list | grep 'atlas \*' || eselect lapack set atlas
touch $@
atlas: install/atlas
install/icc: install/portage-dirs install/overlay-sekyfsr
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/icc
cp -f {files,${EPREFIX}}/etc/portage/package.use/icc
cp -f {files,${EPREFIX}}/etc/portage/package.license/icc
${EMERGE} -uN dev-lang/icc
touch $@
icc: install/icc
install/tbb: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-cpp/tbb
touch $@
tbb: install/tbb
install/mkl: install/portage-dirs
ifeq ($(strip ${MKL_LICENSE}), )
@echo "* Did not find any valid mkl license."
@echo "* Register at http://developer.intel.com/software/products/mkl/ to receive a license"
@echo "* MKL_LICENSE=/my/license/file make mkl"
else
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.license/${me}
${EMERGE} -uN -q -j sci-libs/mkl
touch $@
endif
mkl: install/mkl
shogun: portage-dirs layman overlay-sekyfsr
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/$@
cp -f {files,${EPREFIX}}/etc/portage/package.use/$@
${EMERGE} -uN -q -j sci-libs/shogun
install/boost: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-libs/boost dev-util/boost-build
touch $@
boost: install/boost
install/hdf5: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j sci-libs/hdf5
touch $@
hdf5: install/hdf5
# -- Database
install/mongodb: install/portage-dirs install/boost
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j dev-db/mongodb
touch $@
mongodb: install/mongodb
# -- Image / Video
install/jpeg:
${EMERGE} --deselect media-libs/jpeg
${EMERGE} -uN -q -j media-libs/libjpeg-turbo
touch $@
jpeg: install/jpeg
install/opencv: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.license/${me}
${EMERGE} -uN -q -j media-libs/opencv
touch $@
opencv: install/opencv
install/freeimage: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
${EMERGE} -uN -q -j media-libs/freeimage
touch $@
freeimage: install/freeimage
install/imagemagick: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.unmask/${me}
${EMERGE} -uN -q -j '>=media-libs/openexr-1.6.1'
${EMERGE} -uN -q -j '>=x11-libs/pango-1.30.0'
# lensfun workaround
${EMERGE} -uN -q -j media-libs/lensfun
${EMERGE} -uN -q -j media-gfx/imagemagick
touch $@
imagemagick: install/imagemagick
install/mplayer: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j media-video/mplayer
touch $@
mplayer: install/mplayer
# -- 3D
install/blender: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j media-gfx/blender
touch $@
blender: install/blender
install/assimp: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j media-gfx/assimp
touch $@
assimp: install/assimp
install/libsdl: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j media-libs/libsdl
touch $@
libsdl: install/libsdl
# -- Misc
install/zsh:
${EMERGE} -uN -j app-shells/zsh
touch $@
zsh: install/zsh
install/ncdu:
${EMERGE} -uN -j sys-fs/ncdu
touch $@
ncdu: install/ncdu
install/htop:
${EMERGE} -uN -j sys-process/htop
touch $@
htop: install/htop
install/tmux:
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -j app-misc/tmux
touch $@
tmux: install/tmux
install/git: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j dev-vcs/git
git: install/git
install/fonts:
${EMERGE} -uN -q -j $(shell eix --only-names -A media-fonts -s font-)
# from "Using UTF-8 with Gentoo" (http://www.gentoo.org/doc/en/utf-8.xml)
${EMERGE} -uN -q -j terminus-font intlfonts freefonts corefonts
# DejaVu fonts
${EMERGE} -uN -q -j media-fonts/dejavu
eselect fontconfig list | grep dejavu
fc-match | grep DejaVuSans || exit 1
fc-match "Monospace" | grep DejaVuSansMono || exit 1
touch $@
fonts: install/fonts
install/dropbox: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j net-misc/dropbox
${EMERGE} -uN -q -j net-misc/dropbox-cli
sysctl -w fs.inotify.max_user_watches=1000000
grep max_user_watches /etc/sysctl.conf || \
echo "fs.inotify.max_user_watches = 1000000" >> /etc/sysctl.conf
sed -i 's/fs\.inotify\.max_user_watches.*/fs\.inotify\.max_user_watches = 1000000/g' /etc/sysctl.conf
touch $@
dropbox: install/dropbox
install/texlive: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j app-text/texlive
#${EMERGE} -uN -q -j app-text/texlive-core
touch $@
texlive: install/texlive
install/cairo: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j x11-libs/cairo
touch $@
cairo: install/cairo
install/ntfs3g: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
-CLEAN_DELAY=0 ${EMERGE} -q -C sys-fs/ntfsprogs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j sys-fs/ntfs3g
touch $@
ntfs3g: install/ntfs3g
install/valgrind: install/portage-dirs
grep -e '^FEATURES.*=.*splitdebug' /etc/make.conf \
|| echo 'FEATURES="$${FEATURES} splitdebug"' >> /etc/make.conf
ifeq ($(shell if test -d /usr/lib/debug/usr/lib64/misc/glibc; then echo true; else echo false; fi), false)
${EMERGE} -q sys-libs/glibc
endif
${EMERGE} -uN -q -j dev-util/valgrind
touch $@
valgrind: install/valgrind
install/megacli: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
${EMERGE} -uN -q -j sys-block/megacli
touch $@
megacli: install/megacli
# -- X
install/xorg-server: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j x11-base/xorg-server
touch $@
xorg-server: install/xorg-server
install/nvidia-drivers: install/portage-dirs install/gcc install/xorg-server
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.mask/${me}
${EMERGE} -uN -q -j x11-drivers/nvidia-drivers
eselect opengl set nvidia
${EMERGE} -uN -q -j app-admin/eselect-opencl
eselect opencl set nvidia
touch $@
nvidia-drivers: install/nvidia-drivers
install/nvidia-settings: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j media-video/nvidia-settings
touch $@
nvidia-settings: install/nvidia-settings
install/mesa: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j media-libs/mesa
touch $@
mesa: install/mesa
# -- OpenCL
install/opencl: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.license/${me}
${EMERGE} -uN -q -j virtual/opencl
touch $@
opencl: install/opencl
# -- CUDA
install/cuda: install/portage-dirs install/layman install/nvidia-drivers install/nvidia-settings install/overlay-sekyfsr
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j '=dev-util/nvidia-cuda-toolkit-4.2.9'
${EMERGE} -uN -q -j '=dev-util/nvidia-cuda-sdk-4.2.9'
${EMERGE} -uN -q -j dev-util/nvidia-cuda-tdk
make module-rebuild
touch $@
cuda: install/cuda
# -- Java
me_nodistfiles=$(subst ${EPREFIX}/usr/portage/distfiles/,,$@)
#${EPREFIX}/usr/portage/distfiles/jdk-6u37-linux-x64.bin:
${EPREFIX}/usr/portage/distfiles/jdk-7u10-linux-x64.tar.gz:
#wget http://dl.dropbox.com/u/167753/fuck-oracle/${me_nodistfiles}
# see http://www.reucon.com/cdn/java/download.sh
wget -c --header="Cookie: gpw_e24=x" http://download.oracle.com/otn-pub/java/jdk/7u10-b18/jdk-7u10-linux-x64.tar.gz
#wget http://www.reucon.com/cdn/java/jdk-6u37-linux-x64.bin
mv -vf ${me_nodistfiles} $@
#${EPREFIX}/usr/portage/distfiles/jdk-6u37-linux-x64-demos.tar.gz:
#wget http://dl.dropbox.com/u/167753/fuck-oracle/${me_nodistfiles}
#mv -vf ${me_nodistfiles} $@
install/oracle-jdk-bin: ${EPREFIX}/usr/portage/distfiles/jdk-7u10-linux-x64.tar.gz
#${EPREFIX}/usr/portage/distfiles/jdk-6u33-linux-x64-demos.tar.gz
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.license/${me}
${EMERGE} -uN -q -j dev-java/oracle-jdk-bin
touch $@
oracle-jdk-bin: install/oracle-jdk-bin
# -- VMs
install/virtualbox: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.license/${me}
${EMERGE} -uN -q -j app-emulation/virtualbox app-emulation/virtualbox-additions app-emulation/virtualbox-guest-additions
@echo "****************************************************************"
@echo "Don't forget to add your users to the 'vboxusers' group, e.g.:"
@echo "sudo gpasswd -a \$${USER} vboxusers"
@echo "****************************************************************"
touch $@
virtualbox: install/virtualbox
install/vagrant: install/portage-dirs install/virtualbox
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j app-emulation/vagrant
touch $@
vagrant: install/vagrant
install/dracut: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.unmask/${me}
${EMERGE} -uN -q -j sec-policy/selinux-dracut sys-kernel/dracut
touch $@
dracut: install/dracut
install/wine: install/portage-dirs
#cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
#cp -f {files,${EPREFIX}}/etc/portage/package.unmask/${me}
${EMERGE} -uN -q -j app-emulation/wine
touch $@
wine: install/wine
# -- Queuing systems
install/torque: install/portage-dirs
cp -f {files,${EPREFIX}}/etc/portage/package.keywords/${me}
cp -f {files,${EPREFIX}}/etc/portage/package.use/${me}
${EMERGE} -uN -q -j sys-cluster/torque
touch $@
torque: install/torque