Building AMC from sources on Gentoo
Version 1 (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 | 1 | * Create a local overlay |
|
9 | 1 | For reference, here the same procdure, with more details : http://wiki.gentoo.org/wiki/Overlay/Local_overlay |
|
10 | 1 | Run the following commands as @root@ (don't forget to give your overlay a nice name ) : |
|
11 | 1 | <pre> |
|
12 | 1 | # mkdir -p /usr/local/portage/{metadata,profiles} |
|
13 | 1 | # echo 'NameOfTheOverlay' > /usr/local/portage/profiles/repo_name |
|
14 | 1 | # echo 'masters = gentoo' > /usr/local/portage/metadata/layout.conf |
|
15 | 1 | # chown -R portage:portage /usr/local/portage |
|
16 | 1 | </pre> |
|
17 | 1 | Get @portage@ ready to make use of this new overlay : |
|
18 | 1 | <pre> |
|
19 | 1 | # echo 'PORTDIR_OVERLAY="/usr/local/portage ${PORTDIR_OVERLAY}"' >> /etc/portage/make.conf |
|
20 | 1 | </pre> |
|
21 | 1 | ||
22 | 1 | * Install the provided files (ebuild and patch) |
|
23 | 1 | Create directories as necessary : |
|
24 | 1 | <pre> |
|
25 | 1 | # mkdir -p /usr/local/portage/app-office/auto-multiple-choice/files/ |
|
26 | 1 | </pre> |
|
27 | 1 | Download the files on this page, and store them in the following directories : |
|
28 | 1 | <pre> |
|
29 | 1 | /usr/local/portage/app-office/auto-multiple-choice/auto-multiple-choice-1.2.1.ebuild |
|
30 | 1 | /usr/local/portage/app-office/auto-multiple-choice/files/auto-multiple-choice-1.2-makefiles.patch |
|
31 | 1 | </pre> |
|
32 | 1 | By default (and I apologize for this bad practice), this @ebuild@ is marked as stable on arch "@amd64@" (64 bits linux). Add your arch is needed in the @KEYWORDS@ variable in the @ebuild@ file (e.g. "@x86@", or better "@~x86@".) |
|
33 | 1 | ||
34 | 1 | * Generate the @Manifest@ |
|
35 | 1 | Still as @root@ user : |
|
36 | 1 | <pre> |
|
37 | 1 | cd /usr/local/portage/app-office/auto-multiple-choice/ |
|
38 | 1 | ebuild auto-multiple-choice-1.2.1.ebuild manifest clean |
|
39 | 1 | </pre> |
|
40 | 1 | Now AMC should be ready for installation. Each and every time you change the @ebuild@, you need to generate again the @Manifest@. |
|
41 | 1 | ||
42 | 1 | * Install AMC |
|
43 | 1 | All that is left to do, is to run your favorite "@emerge@" line : |
|
44 | 1 | <pre> |
|
45 | 1 | emerge -qav auto-multiple-choice |
|
46 | 1 | </pre> |
|
47 | 1 | ||
48 | 1 | ||
49 | 1 | h2. Installation using an @overlay@ |
|
50 | 1 | ||
51 | 1 | No existing @overlay@ yet. :-( |
|
52 | 1 | ||
53 | 1 | h2. Updates to the documentation |
|
54 | 1 | ||
55 | 1 | The provided @ebuild@ and this documentation are relatively new and untested. Feel free to adapt and to give some feedback (forums or wiki). |