Obsolete

Version 3 (Joël Brogniart, 12/07/2017 10:41 am)

1 1
h1. Installation de la version de développement d'AMC sous OS X Mountain Lion (10.8)
2 1
3 1
Le logiciel Auto Multiple Choice (AMC) est un logiciel de gestion de questionnaires. Il permet, à partir de la définition des questions (question à choix unique/question à choix multiple, bonnes/mauvaises réponses…) de générer des feuilles de questionnaires. Une fois ces questionnaires remplis et numérisés, AMC permet de corriger automatiquement les questionnaires. Ce logiciel fonctionne dans un environnement graphique X Window System sous Linux et OS X.
4 1
5 1
Il est possible d'installer la "version précompilée 1.1.1 d'AMC":http://project.auto-multiple-choice.net/projects/auto-multiple-choice/wiki/Installation_d'AMC_sous_OS_X_Mountain_Lion, mais pour pouvoir bénéfier des améliorations apportées à Auto Multiple Choice au cours de son développement, il est aussi possible d'installer AMC à partir du code source.
6 1
7 1
Pour l'instant, l'installation décrite ici est assez technique et concerne uniquement OS X 10.8. Cette installation nécessite quelques connaissances sur les outils Unix, l'utilisation de lignes de commandes, une compréhension de l'architecture des ports "MacPorts":http://www.macports.org, une petite compréhension des dépendances entre différents outils (Subversion, MacPorts, PERL, X11, ports…) et de l'architecture OS X. Il faut aussi disposer des droits d'administration sur l'ordinateur. Elle n'est donc malheureusement pas destinée à tout le monde. Il y a un petit soucis pour la communication avec les outils d'impression et la version installée ne pourra pas imprimer directement. Les documents générés par AMC devront être imprimés à partir de OS X.
8 1
9 1
Pour cette installation il va falloir créer un dépot local MacPort. Dans ce dépot, seront mis les fichiers de description de port des outils inconnus de MacPorts. Il y aura un fichier de port pour AMC et quelques fichiers de port supplémentaires pour des outils nécessaires au fonctionnement d'AMC. Une fois les fichiers de port installés, l'installation d'AMC pourra être lancée.
10 1
11 1
h2. Prérequis
12 1
13 1
Les prérequis sont identiques à ceux de l'installation de la version 1.1.1 d'AMC. Pour fonctionner avec son interface, AMC nécessite un environnement graphique X Window System ou X11, la police de caractères Linux Libertine et le système d'installation MacPorts.
14 1
15 1
h3. L'environnement X Window System
16 1
17 1
OS X ne contient pas en standard l'environnement graphique X11. Il est possible de combler cette lacune en installant XQuartz, un environnement X Windows System fonctionnant sous OS X. On peut télécharger l'application sur le site "XQuartz":http://xquartz.macosforge.org.
18 1
19 1
h3. La police Linux Libertine
20 1
21 1
La police Linux Libertine est une police libre qui couvre les pages de code pour les langues latines, le grec, les langues cyrilliques, l'hébreu, l'alphabet phonétique international (et d'autres). Il faut télécharger le paquet "OTF" sur le site "LinuxLibertine.org":http://www.linuxlibertine.org.
22 1
23 1
*Attention* : La version actuelle de XQuartz (2.7.4) ne reconnait pas les polices installées dans le dossier de l'utilisateur. Il faut installer les polices en les déplaçant dans le dossier "@/Library/Fonts@".
24 1
25 1
h3. MacPorts
26 1
27 1
MacPorts est un système qui permet de compiler, installer et gérer des logiciels source libre. Il faut télécharger le paquet d'installation Mountain Lion sur le site "MacPorts":http://www.macports.org et installer MacPorts.
28 1
29 1
h2. MacPorts et les fichiers de port
30 1
31 1
Un fichier de port MacPorts contient les informations qui permettent d'installer un programme dans le système MacPorts. Il indique quels sont les outils nécessaires à l'installation et au fonctionnement du programme et comment faire pour installer le programme. MacPorts contient de "nombreux ports":http://www.macports.org/ports.php", mais il ne contient pas de port décrivant l'installation d'AMC à partir du code source du programme. Certains outils nécessaires pour l'installation et le fonctionnement d'AMC sont absents de MacPorts. Il va donc falloir créer les fichiers de port pour ces outils ainsi que le fichier de port pour la version de développement d'AMC.
32 1
33 1
Pour éviter les conflits avec les ports déjà décrits de MacPorts, les nouveaux fichiers de ports seront installés dans le dossier de l'utilisateur qui fait l'installation, au lieu d'être installés dans les dossiers directements gérés par MacPorts.
34 1
35 1
*Remarque* : MacPorts est un effort collaboratif et de nombreux développeurs participent à son évolution. Ainsi les fichiers décrits ici ont ils été proposés pour être ajoutés aux fichiers référencés dans MacPorts. Lorsque et si un ajout est accepté, le fichier de port local n'est plus nécessaire. Une mise à jour de MacPorts importera le fichier de port accepté dans la hiérarchie standard de MacPorts.
36 1
37 1
h3. Dépot local MacPorts
38 1
39 1
Pour que MacPorts puisse utiliser un dossier local, il faut créer ce dossier local.
40 1
41 1
<pre>mkdir -p ~/nix/macports</pre>
42 1
43 1
Il faut ensuite indiquer à MacPorts de prendre en compte le dossier local et ceci, avant la prise en compte de la hiérarchie standard de MacPorts. Pour cela il faut éditer le fichier "@/opt/local/etc/macports/sources.conf@" et ajouter un URL pointant vers le dossier local avant l'URL @rsync@ du dépot MacPorts.
44 1
45 1
<pre>file:///Users/julesvernes/nix/macports
46 1
rsync://rsync.macports.org/release/tarballs/ports.tar [default]</pre>
47 1
  
48 1
h3. Fichiers de ports
49 1
50 2 Joël Brogniart
Une archive contenant les fichiers de ports décrits ici est disponible au téléchargement : attachment:macports.zip.
51 1
52 2 Joël Brogniart
Les ports sont regroupés par catégories et l'organisation des fichiers de port reflète ce groupement. Chaque port fait partie d'une catégorie principale et dispose de son propre dossier. La catégorie principale de AMC dans MacPorts est X11, aussi le dossier du port pour AMC se trouvera à l'intérieur d'un dossier @X11@. AMC est développé en PERL et nécessite de nombreux modules CPAN. Les modules PERL à ajouter le seront dans le dossier @perl@. Les ports PERL suivants seront ajoutés.
53 1
* p5-email-abstract> (module CPAN "Email::Abstract":http://search.cpan.org/~rjbs/Email-Abstract)
54 1
* p5-email-sender (module CPAN "Email::Sender":http://search.cpan.org/~rjbs/Email-Sender)
55 1
* p5-moo</span> (module CPAN "Moo":http://search.cpan.org/~mstrout/Moo)
56 1
* p5-moox-types-mooselike (module CPAN "Moox::Types::MooseLike":http://search.cpan.org/~mateu/MooX-Types-MooseLike)
57 1
* p5-role-tiny (module CPAN "Role::Tiny":http://search.cpan.org/~ilmari/Role-Tiny)
58 1
* p5-strictures (module CPAN "strictures":http://search.cpan.org/~ether/strictures)
59 2 Joël Brogniart
* p5-throwable (module CPAN "Throwable":http://search.cpan.org/~rjbs/Throwable)
60 1
61 1
Les ports suivants seront mis à jour car la version actuellement disponible dans MacPort est trop ancienne.
62 1
* p5-class-load (module CPAN "Class::Load":http://search.cpan.org/~drolsky/Class-Load)
63 1
* p5-email-mime (module CPAN "Email::MIME":http://search.cpan.org/~rjbs/Email-MIME)
64 3 Joël Brogniart
* -p5-email-simple (module CPAN "Email::Simple":http://search.cpan.org/~rjbs/Email-Simple)- (plus nécessaire, mis à jour dans MacPorts)
65 1
66 1
Voici une commande permettant de créer cette hiérarchie.
67 1
<pre>cd ~/nix/macports
68 2 Joël Brogniart
mkdir -p perl/p5-class-load perl/p5-email-abstract perl/p5-email-mime \
69 2 Joël Brogniart
    perl/p5-email-sender perl/p5-email-simple perl/p5-moo perl/p5-moox-types-mooselike \
70 2 Joël Brogniart
    perl/p5-role-tiny perl/p5-strictures perl/p5-throwable x11/auto-multiple-choice-devel</pre>
71 1
72 2 Joël Brogniart
!port-hierarchy.png!
73 2 Joël Brogniart
74 2 Joël Brogniart
Chacun des dossiers de port doit contenir un document nommé @Portfile@. Ce document est un document texte contenant une description permettant l'installation par MacPorts de l'outil. Les fichiers de port des nouveaux modules PERL ont été créés avec l'utilitaire "@cpan2port@":https://trac.macports.org/wiki/howto/cpan2port puis modifiés pour respecter les règles et pratiques utilisées par les contributeurs de MacPorts. Pour les modules mis à jour, une copie du fichier de port disponible dans MacPorts a été adaptée pour l'installation de la nouvelle version de l'outil.
75 1
  
76 2 Joël Brogniart
h4. @perl/p5-class-load/Portfile@
77 2 Joël Brogniart
<pre title="perl/p5-class-load/Portfile">PortSystem            1.0
78 1
PortGroup             perl5 1.0
79 1
80 1
perl5.branches        5.8 5.10 5.12 5.14 5.16
81 1
perl5.setup           Class-Load 0.20
82 1
license               {Artistic-1 GPL}
83 1
maintainers           nomaintainer
84 1
description           a working (require \"Class::Name\") and more
85 1
long_description      ${description}
86 1
87 1
platforms             darwin
88 1
89 1
checksums             sha256 823c45885e1d29feef6867282b881d402f42af6413c7e0e9f8fe32086aee8c20 \
90 1
                      rmd160 040eeb3049f08444e7d7f3cfcf0bcc03e2ed7e97
91 1
92 1
if {${perl5.major} != ""} {
93 1
depends_lib-append    port:p${perl5.major}-try-tiny \
94 1
                      port:p${perl5.major}-package-stash \
95 1
                      port:p${perl5.major}-module-implementation \
96 1
                      port:p${perl5.major}-data-optlist \
97 1
                      port:p${perl5.major}-module-runtime
98 1
depends_build-append  port:p${perl5.major}-test-requires \
99 1
                      port:p${perl5.major}-test-fatal
100 1
101 1
supported_archs       noarch
102 1
}</pre>
103 1
104 2 Joël Brogniart
h4. @perl/p5-email-abstract/Portfile@
105 2 Joël Brogniart
<pre title="perl/p5-email-abstract/Portfile">PortSystem          1.0
106 1
PortGroup           perl5 1.0
107 1
108 1
perl5.branches      5.8 5.10 5.12 5.14 5.16
109 1
perl5.setup         Email-Abstract 3.004
110 1
license             {Artistic-1 GPL}
111 1
maintainers         nomaintainer
112 1
description         Email::Abstract - unified interface to mail representations
113 1
long_description    Email::Abstract provides module writers with the ability \
114 1
                    to write simple, representation-independent mail handling \
115 1
                    code. For instance, in the cases of Mail::Thread or \
116 1
                    Mail::ListDetector, a key part of the code involves \
117 1
                    reading the headers from a mail object. Where previously \
118 1
                    one would either have to specify the mail class required, \
119 1
                    or to build a new object from scratch, Email::Abstract can \
120 1
                    be used to perform certain simple operations on an object \
121 1
                    regardless of its underlying representation. \
122 1
                    \
123 1
                    Email::Abstract currently supports Mail::Internet, \
124 1
                    MIME::Entity, Mail::Message, Email::Simple and \
125 1
                    Email::MIME. Other representations are encouraged to \
126 1
                    create their own Email::Abstract::* class by copying \
127 1
                    Email::Abstract::EmailSimple. All modules installed under \
128 1
                    the Email::Abstract hierarchy will be automatically \
129 1
                    picked up and used.
130 1
131 1
platforms           darwin
132 1
supported_archs     noarch
133 1
134 1
checksums           sha256 0d195361c1168b2e890b94aeae6b7b4f2d3eaf6664df18f178c543c1fa532a3a \
135 1
                    rmd160 a6a99eb1c250392c55ee216c79897796c7c8501b
136 1
137 1
if {${perl5.major} != ""} {
138 1
depends_lib-append  port:p${perl5.major}-email-simple \
139 1
                    port:p${perl5.major}-mro-compat
140 1
141 1
}</pre>
142 1
143 2 Joël Brogniart
h4. @perl/p5-email-mime/Portfile@
144 2 Joël Brogniart
<pre title="perl/p5-email-mime/Portfile">PortSystem          1.0
145 1
PortGroup           perl5 1.0
146 1
147 1
perl5.branches      5.8 5.10 5.12 5.14 5.16
148 1
perl5.setup         Email-MIME 1.911
149 1
license             {Artistic-1 GPL}
150 1
maintainers         ricci openmaintainer
151 1
description         Easy MIME message parsing
152 1
long_description    ${description}
153 1
154 1
platforms           darwin
155 1
supported_archs     noarch
156 1
157 1
if {${perl5.major} != ""} {
158 1
depends_lib-append  port:p${perl5.major}-email-mime-contenttype	\
159 1
                    port:p${perl5.major}-email-mime-encodings	\
160 1
                    port:p${perl5.major}-email-messageid \
161 1
                    port:p${perl5.major}-email-simple	\
162 1
                    port:p${perl5.major}-mime-types
163 1
164 1
checksums           sha256 cde752e1cbfc9869547b5f94d8e4b9b64bdb6403746111e02e79be3085be7b5a \
165 1
                    rmd160 ebe53fb4174e5c73002879eab73becb868372fdc
166 1
}</pre>
167 1
168 2 Joël Brogniart
h4. @perl/p5-email-sender/Portfile@
169 2 Joël Brogniart
<pre title="perl/p5-email-sender/Portfile">PortSystem          1.0
170 1
PortGroup           perl5 1.0
171 1
172 1
perl5.branches      5.8 5.10 5.12 5.14 5.16
173 1
perl5.setup         Email-Sender 0.120002
174 1
license             {Artistic-1 GPL}
175 1
maintainers         nomaintainer
176 1
description         Email::Sender - a library for sending email
177 1
long_description    Email::Sender replaces the old and sometimes problematic \
178 1
                    Email::Send library, which did a decent job at handling \
179 1
                    very simple email sending tasks, but was not suitable for \
180 1
                    serious use, for a variety of reasons.
181 1
182 1
platforms           darwin
183 1
supported_archs     noarch
184 1
185 1
checksums           sha256 ac0501043cc7d8d92294532126c9903e55003d6830542de3efe6c0da6c19e7b2 \
186 1
                    rmd160 8b670425e3901f8f8d0febebd4831437f3cda51b
187 1
188 1
if {${perl5.major} != ""} {
189 1
depends_lib-append  port:p${perl5.major}-try-tiny \
190 1
                    port:p${perl5.major}-capture-tiny \
191 1
                    port:p${perl5.major}-throwable \
192 1
                    port:p${perl5.major}-email-abstract \
193 1
                    port:p${perl5.major}-email-simple \
194 1
                    port:p${perl5.major}-list-moreutils \
195 1
                    port:p${perl5.major}-moose \
196 1
                    port:p${perl5.major}-email-address
197 1
}</pre>
198 1
199 1
200 2 Joël Brogniart
h4. @perl/p5-moo/Portfile@
201 2 Joël Brogniart
<pre title="perl/p5-moo/Portfile">PortSystem          1.0
202 1
PortGroup           perl5 1.0
203 1
204 1
perl5.branches      5.8 5.10 5.12 5.14 5.16
205 1
perl5.setup         Moo 1.000007 ../by-authors/id/M/MS/MSTROUT
206 1
license             {Artistic-1 GPL}
207 1
maintainers         nomaintainer
208 1
description         Moo - Minimalist Object Orientation (with Moose compatiblity)
209 1
long_description    This module is an extremely light-weight subset of Moose \
210 1
                    optimised for rapid startup and \"pay only for what you \
211 1
                    use\". \
212 1
                    \
213 1
                    It also avoids depending on any XS modules to allow simple \
214 1
                    deployments. The name Moo is based on the idea that it \
215 1
                    provides almost -- but not quite -- two thirds of Moose. \
216 1
                    \
217 1
                    Unlike Mouse this module does not aim at full \
218 1
                    compatibility with Moose's surface syntax, preferring \
219 1
                    instead of provide full interoperability via the metaclass \
220 1
                    inflation capabilities described in \"MOO AND MOOSE\".
221 1
222 1
platforms           darwin
223 1
supported_archs     noarch
224 1
225 1
checksums           sha256 140762fbe0c2a3ffa82e85d06c1e69596d8d10531f4d3ceb9f1e6da77791050b \
226 1
                    rmd160 7d1b1496aaa0ff09ef0c9feb67b453a1ef5a9dbe
227 1
228 1
if {${perl5.major} != ""} {
229 1
depends_lib-append  port:p${perl5.major}-devel-globaldestruction \
230 1
                    port:p${perl5.major}-strictures \
231 1
                    port:p${perl5.major}-role-tiny \
232 1
                    port:p${perl5.major}-module-runtime \
233 1
                    port:p${perl5.major}-class-method-modifiers
234 1
depends_build-append port:p${perl5.major}-test-fatal
235 1
}</pre>
236 1
237 2 Joël Brogniart
h4. @perl/p5-moox-types-mooselike/Portfile@
238 2 Joël Brogniart
<pre title="perl/p5-moox-types-mooselike/Portfile">PortSystem          1.0
239 1
PortGroup           perl5 1.0
240 1
241 1
perl5.branches      5.8 5.10 5.12 5.14 5.16
242 1
perl5.setup         MooX-Types-MooseLike 0.16
243 1
license             {Artistic-1 GPL}
244 1
maintainers         nomaintainer
245 1
description         MooX::Types::MooseLike - some Moosish types and a type builder
246 1
long_description    ${description}
247 1
248 1
platforms           darwin
249 1
supported_archs     noarch
250 1
251 1
checksums           sha256 753ee74d6567ab265e646fee8aa4791641aaf8d5342a9689f53e7a302f16a727 \
252 1
                    rmd160 0c991bea80685f616fc6d02e33778f49d4bcc6f6
253 1
254 1
if {${perl5.major} != ""} {
255 1
depends_lib-append  port:p${perl5.major}-moo \
256 1
                    port:p${perl5.major}-module-runtime
257 1
depends_build-append port:p${perl5.major}-test-fatal
258 1
}</pre>
259 1
260 2 Joël Brogniart
h4. @perl/p5-role-tiny/Portfile@
261 2 Joël Brogniart
<pre title="perl/p5-role-tiny/Portfile">PortSystem          1.0
262 1
PortGroup           perl5 1.0
263 1
264 1
perl5.branches      5.8 5.10 5.12 5.14 5.16
265 1
perl5.setup         Role-Tiny 1.002004 ../by-authors/id/I/IL/ILMARI
266 1
license             {Artistic-1 GPL}
267 1
maintainers         nomaintainer
268 1
description         Role::Tiny - Roles. Like a nouvelle cuisine portion size slice of Moose.
269 1
long_description    Role::Tiny is a minimalist role composition tool.
270 1
271 1
platforms           darwin
272 1
supported_archs     noarch
273 1
274 1
checksums           sha256 a69c4d28634ca66f448f84636652628ece6e84c03593d9f233bdbaf8d5342258 \
275 1
                    rmd160 a4eb1b44d2e09b3c4b18e8cd1d5d47a0154fc3dd
276 1
277 1
278 1
if {${perl5.major} != ""} {
279 1
depends_lib-append  port:p${perl5.major}-test-fatal
280 1
}</pre>
281 1
282 2 Joël Brogniart
h4. @perl/p5-strictures/Portfile@
283 2 Joël Brogniart
<pre title="perl/p5-strictures/Portfile">PortSystem          1.0
284 1
PortGroup           perl5 1.0
285 1
286 1
perl5.branches      5.8 5.10 5.12 5.14 5.16
287 1
perl5.setup         strictures 1.004004 ../by-authors/id/E/ET/ETHER
288 1
license             {Artistic-1 GPL}
289 1
platforms           darwin
290 1
maintainers         nomaintainer
291 1
description         strictures - turn on strict and make all warnings fatal.
292 1
long_description    ${description}
293 1
294 1
checksums           sha256 12117dbaaaa85e07cbf01d95927ecb5ba8d5ed896c18d7dbc6b4be47b255ee34 \
295 1
                    rmd160 e9638bdb9621637b457f039913185f1fcf012aa4
296 1
297 1
supported_archs     noarch</pre>
298 1
299 2 Joël Brogniart
h4. @perl/p5-throwable/Portfile@
300 2 Joël Brogniart
<pre title="perl/p5-throwable/Portfile">PortSystem          1.0
301 1
PortGroup           perl5 1.0
302 1
303 1
perl5.branches      5.8 5.10 5.12 5.14 5.16
304 1
perl5.setup         Throwable 0.200003 ../by-authors/id/R/RJ/RJBS
305 1
license             {Artistic-1 GPL}
306 1
maintainers         nomaintainer
307 1
description         Throwable - a role for classes that can be thrown
308 1
long_description    Throwable is a role for classes that are meant to be \
309 1
                    thrown as exceptions to standard program flow. It is \
310 1
                    very simple and does only two things: saves any previous \
311 1
                    value for \$@ and calls die \$self.
312 1
313 1
platforms           darwin
314 1
supported_archs     noarch
315 1
316 1
checksums           sha256 f33106239b5f9b02fbc6dba7f6bb9d48cca3b620bf07761d4e8a653ec079424f \
317 1
                    rmd160 458bce74d3bac4fc3c19ea1406eafed4cd79fe91
318 1
319 1
if {${perl5.major} != ""} {
320 1
depends_lib-append  port:p${perl5.major}-moox-types-mooselike \
321 1
                    port:p${perl5.major}-devel-stacktrace \
322 1
                    port:p${perl5.major}-class-load \
323 1
                    port:p${perl5.major}-moo
324 1
}</pre>
325 1
326 2 Joël Brogniart
h4. @x11/auto-multiple-choice-devel/Portfile@
327 2 Joël Brogniart
<pre title="x11/auto-multiple-choice-devel/Portfile">PortSystem          1.0
328 1
329 1
name                auto-multiple-choice-devel
330 1
svn.revision        1294
331 1
version             1.1.${svn.revision}
332 1
categories          x11 tex education
333 1
platforms           darwin
334 1
license             GPL-2+
335 1
maintainers         univ-lyon1.fr:clot
336 1
337 1
description         Auto Multiple Choice - Multiple Choice Papers Management
338 1
long_description    Utility to manage multiple choice questionnaires, \
339 1
                    with optionally mixed questions and answers. \
340 1
                    AMC provides automatic marking from papers' scans. \
341 1
                    Annotated papers are produced. Marks can be exported \
342 1
                    as an OpenOffice.org sheet file. \
343 1
                    \
344 1
                    This version can't print. Documents should be printed from OS X.
345 1
346 1
homepage            http://home.gna.org/auto-qcm
347 1
conflicts           auto-multiple-choice
348 1
349 1
depends_build-append port:dblatex \
350 1
                    port:p5.12-xml-libxml
351 1
depends_lib         port:opencv
352 1
depends_run         port:p5.12-gtk2 \
353 1
                    port:p5.12-xml-simple \
354 1
                    port:p5.12-xml-writer \
355 1
                    port:p5.12-archive-zip \
356 1
                    port:p5.12-locale-gettext \
357 1
                    port:p5.12-digest-md5 \
358 1
                    port:p5.12-module-load-conditional \
359 1
                    port:p5.12-perlmagick \
360 1
                    port:p5.12-openoffice-oodoc \
361 1
                    port:p5.12-file-mimeinfo \
362 1
                    port:p5.12-dbd-sqlite \
363 1
                    port:p5.12-text-csv \
364 1
                    port:p5.12-file-basedir \
365 1
                    port:p5.12-email-mime \
366 1
                    port:p5.12-email-sender \
367 1
                    port:sqlite3 \
368 1
                    port:poppler \
369 1
                    port:netpbm \
370 1
                    port:librsvg
371 1
372 1
use_configure       no
373 1
374 1
fetch.type          svn
375 1
svn.url             svn://svn.gna.org/auto-qcm/trunk/
376 1
worksrcdir          trunk
377 1
378 1
build.args          AMCCONF=macports \
379 1
                    BASEPATH=${prefix} \
380 1
                    LATEX_FREE=1 \
381 1
                    GCC_PP="${configure.cc} ${configure.cc_archflags}"
382 1
383 1
# When building from source, some files should be configured before.
384 1
# This pre-configuration use the make tool, not the configure tool.
385 1
pre-build {
386 1
  build.target         version_files
387 1
  system -W ${worksrcpath} "${build.cmd} ${build.pre_args}"
388 1
  build.target         all
389 1
}
390 1
391 1
# When first installed auto-multiple-choice could fail to launch with
392 1
# a "Format d'image non reconnu at /opt/local/lib/AMC/perl/AMC-gui.pl line 101"
393 1
# ("Unknown image format?").
394 1
# The following update cache command makes auto-multiple-choice happy.
395 1
post-activate {
396 2 Joël Brogniart
  system "${prefix}/bin/gdk-pixbuf-query-loaders --update-cache 2>&1"
397 1
}
398 1
399 1
destroot.args       AMCCONF=macports \
400 1
                    BASEPATH=${prefix}
401 1
402 1
variant latex description "Add LaTeX support" {
403 1
    depends_run-append  port:texlive-latex-extra \
404 1
                        port:texlive-latex-recommended \
405 1
                        port:texlive-fonts-recommended \
406 1
                        port:texlive-xetex
407 1
408 1
    build.args-delete   LATEX_FREE=1
409 1
410 1
    post-activate {
411 2 Joël Brogniart
        system "${prefix}/bin/mktexlsr 2>&1"
412 1
    }
413 1
414 1
    post-deactivate {
415 2 Joël Brogniart
        system "${prefix}/bin/mktexlsr 2>&1"
416 1
    }
417 1
}
418 1
419 1
default_variants    +latex
420 1
421 1
livecheck.type      regex
422 1
livecheck.url       http://svn.gna.org/viewcvs/auto-qcm/trunk/
423 1
livecheck.version   ${svn.revision}
424 1
livecheck.regex     {Revision (\d+)}</pre>
425 1
426 2 Joël Brogniart
h2. Installation de AMC
427 1
428 1
Une fois les fichiers de port mis en place, il faut générer l'index des nouveaux ports.
429 1
<pre>cd ~/nix/macports
430 1
portindex</pre>
431 1
432 1
Enfin, l'installation de la version de développement d'AMC peut être lancée.
433 1
434 1
<pre>sudo port install auto-multiple-choice-devel</pre>
435 1
436 1
AMC est prêt à être utilisé.
437 1
438 2 Joël Brogniart
*Attention* : les versions standard et développement d'AMC ne peuvent être installées simultanément. Si une version standard était précédemment installée, il faut la désinstaller avant l'installation de la version de développement.
439 1
440 1
<pre>sudo port uninstall auto-multiple-choice</pre>
441 1
442 2 Joël Brogniart
h2. Utilisation de AMC
443 1
444 1
Vous pouvez lancer AMC à partir du terminal ou à partir de XQuartz.
445 1
446 2 Joël Brogniart
h3. Dans Terminal
447 1
448 1
<pre>auto-multiple-choice-devel</pre>
449 2 Joël Brogniart
450 1
Cette commande lancera l'application XQuartz puis AMC.
451 1
452 2 Joël Brogniart
h3. Dans XQuartz
453 1
454 1
Lancer l'application XQuartz.
455 1
456 2 Joël Brogniart
!xquartz.png!
457 1
458 2 Joël Brogniart
On peut tout de suite configurer XQuartz pour faciliter le lancement de AMC. Ouvrir le menu @Applications > Personnaliser…@.
459 1
460 2 Joël Brogniart
!xquartz-menu-applications-personnaliser.png!
461 1
462 2 Joël Brogniart
Dans la fenêtre de personnalisation, cliquer le bouton @Ajouter un élément@.
463 1
464 2 Joël Brogniart
!xquartz-fenetre-personnaliser-menu-applications.png!
465 1
466 2 Joël Brogniart
Mettre "@Auto Multiple Choice@" dans la colonne @Nom@ et "@auto-multiple-choice@" dans la colonne @Commande@ du nouvel item de menu.
467 1
468 2 Joël Brogniart
!xquartz-fenetre-personnaliser-menu-applications-2.png!
469 1
470 2 Joël Brogniart
Fermer la fenêtre de personnalisation puis choisir le menu @Applications > Auto Multiple Choix@.
471 1
472 2 Joël Brogniart
!xquartz-menu-applications-amc.png!
473 1
474 1
La fenêtre de AMC doit apparaître.
475 1
476 2 Joël Brogniart
!auto-multiple-choice-window.png!
477 1
478 1
À part pour l'impression, tout devrait marcher.
479 1
480 2 Joël Brogniart
h2. Liens
481 1
      
482 2 Joël Brogniart
* Auto Multiple Choice, "http://home.gna.org/auto-qcm/":http://home.gna.org/auto-qcm/.
483 2 Joël Brogniart
* Auto Multiple Choice "(version 1.1.1) - installation sous OS X Mountain Lion (10.8)":http://project.auto-multiple-choice.net/projects/auto-multiple-choice/wiki/Installation_d'AMC_sous_OS_X_Mountain_Lion.
484 2 Joël Brogniart
* MacPorts, "http://www.macports.org":http://www.macports.org.
485 2 Joël Brogniart
* MacPorts, "Local Portfile Repositories":http://guide.macports.org/#development.local-repositories.
486 2 Joël Brogniart
* MacPorts, "How to create portfiles for CPAN Perl modules":https://trac.macports.org/wiki/howto/cpan2port.
487 2 Joël Brogniart
* Famille de polices Linux Libertine, "LinuxLibertine.org":http://www.linuxlibertine.org.
488 2 Joël Brogniart
* XQuartz, http://xquartz.macosforge.org</a>.