Building AMC from sources on Gentoo
Version 3 (Pierre-Olivier Vallès, 09/17/2014 09:49 pm)
1 | 1 | h1. Building AMC from sources on Gentoo |
|
---|---|---|---|
2 | 1 | ||
3 | 1 | As of September 16th of 2014, there are no AMC @ebuild@ available through any overlay, unfortunately. |
|
4 | 1 | Using this guide, you find all the information and resources to compile / install AMC 1.2.1. You will need to set up a local overlay (i.e. on your computer) to use the @ebuild@ provided in this page. |
|
5 | 1 | ||
6 | 1 | h2. Compile / Install using a local overlay |
|
7 | 1 | ||
8 | 3 | Pierre-Olivier Vallès | Note : bug (https://bugs.gentoo.org/show_bug.cgi?id=501254) has been open to request the inclusion of AMC in portage. |
9 | 3 | Pierre-Olivier Vallès | The files on this wiki page are also available on Gentoo bug-tracking system are the same address. |
10 | 3 | Pierre-Olivier Vallès | |
11 | 1 | * Create a local overlay |
|
12 | 2 | Pierre-Olivier Vallès | For reference, here the original procedure, with more explanations : http://wiki.gentoo.org/wiki/Overlay/Local_overlay |
13 | 1 | Run the following commands as @root@ (don't forget to give your overlay a nice name ) : |
|
14 | 1 | <pre> |
|
15 | 1 | # mkdir -p /usr/local/portage/{metadata,profiles} |
|
16 | 1 | # echo 'NameOfTheOverlay' > /usr/local/portage/profiles/repo_name |
|
17 | 1 | # echo 'masters = gentoo' > /usr/local/portage/metadata/layout.conf |
|
18 | 1 | # chown -R portage:portage /usr/local/portage |
|
19 | 1 | </pre> |
|
20 | 1 | Get @portage@ ready to make use of this new overlay : |
|
21 | 1 | <pre> |
|
22 | 1 | # echo 'PORTDIR_OVERLAY="/usr/local/portage ${PORTDIR_OVERLAY}"' >> /etc/portage/make.conf |
|
23 | 1 | </pre> |
|
24 | 1 | ||
25 | 3 | Pierre-Olivier Vallès | * Install the provided files (@ebuilds@ and patches) |
26 | 1 | Create directories as necessary : |
|
27 | 1 | <pre> |
|
28 | 1 | # mkdir -p /usr/local/portage/app-office/auto-multiple-choice/files/ |
|
29 | 1 | </pre> |
|
30 | 1 | Download the files on this page, and store them in the following directories : |
|
31 | 1 | <pre> |
|
32 | 3 | Pierre-Olivier Vallès | /usr/local/portage/app-office/auto-multiple-choice/ [ebuilds] |
33 | 3 | Pierre-Olivier Vallès | /usr/local/portage/app-office/auto-multiple-choice/files/ [patches] |
34 | 1 | </pre> |
|
35 | 3 | Pierre-Olivier Vallès | Starting with ebuild version 1.2.1-r1, the @ebuild@ is masked on all arch ("@x86@" and "@amd64@"). Adapt your "package.keywords" file as needed. |
36 | 1 | ||
37 | 1 | * Generate the @Manifest@ |
|
38 | 1 | Still as @root@ user : |
|
39 | 1 | <pre> |
|
40 | 1 | cd /usr/local/portage/app-office/auto-multiple-choice/ |
|
41 | 1 | ebuild auto-multiple-choice-1.2.1.ebuild manifest clean |
|
42 | 1 | </pre> |
|
43 | 3 | Pierre-Olivier Vallès | Now AMC should be ready for installation. Remember that each and every time you change the @ebuild@, you need to generate again the @Manifest@. |
44 | 1 | ||
45 | 1 | * Install AMC |
|
46 | 1 | All that is left to do, is to run your favorite "@emerge@" line : |
|
47 | 1 | <pre> |
|
48 | 1 | emerge -qav auto-multiple-choice |
|
49 | 1 | </pre> |
|
50 | 3 | Pierre-Olivier Vallès | Warning ! The requires "@app-tex/dblatex@" package is not yet part of @portage@ ; you will find it in overlays such as "@eva@" ou "@benf@". |
51 | 3 | Pierre-Olivier Vallès | (Use "@layman@" to manage your overlays). |
52 | 1 | ||
53 | 1 | h2. Installation using an @overlay@ |
|
54 | 1 | ||
55 | 1 | No existing @overlay@ yet. :-( |
|
56 | 1 | ||
57 | 1 | h2. Updates to the documentation |
|
58 | 1 | ||
59 | 1 | The provided @ebuild@ and this documentation are relatively new and untested. Feel free to adapt and to give some feedback (forums or wiki). |