Changeset 145039 for trunk


Ignore:
Timestamp:
Jan 24, 2016, 2:50:01 AM (3 years ago)
Author:
raimue@…
Message:

textproc/enchant:
Add separate variants for each dictionary backend.
Add patch to enable AppleSpell backend, make it default.

Location:
trunk/dports/textproc/enchant
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/enchant/Portfile

    r145024 r145039  
    55name                enchant
    66version             1.6.0
    7 revision            3
     7revision            4
    88categories          textproc devel
    99platforms           darwin
     
    2626                    rmd160  a992034355bb36b9acabdbd400c9f4a3b996cce6
    2727
    28 depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
    29                     port:aspell \
    30                     port:hunspell
     28patch.pre_args      -p1
     29
     30depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2
    3131
    3232depends_build       port:pkgconfig
    33 
    34 # at least one aspell and/or hunspell dictionary must be installed
    35 
    36 depends_run         port:aspell-dict-en
    3733
    3834use_autoreconf      yes
    3935autoreconf.args     -fvi
    4036
    41 configure.args      --with-myspell-dir=${prefix}/share/hunspell
     37configure.args      --disable-ispell \
     38                    --disable-myspell \
     39                    --disable-aspell \
     40                    --disable-voikko \
     41                    --disable-uspell \
     42                    --disable-hspell \
     43                    --disable-zemberek \
     44                    --with-myspell-dir=${prefix}/share/hunspell
     45
     46# users most likely have AppleSpell already set up for their language
     47default_variants    +applespell
     48
     49variant ispell description {Enable ispell backend} {
     50    configure.args-replace --disable-ispell --enable-ispell
     51}
     52
     53variant aspell description {Enable aspell backend} {
     54    configure.args-replace --disable-aspell --enable-aspell
     55    depends_lib-append  port:aspell
     56    depends_run         port:aspell-dict-en
     57}
     58
     59variant myspell description {Enable myspell backend, using hunspell} {
     60    configure.args-replace --disable-myspell --enable-myspell
     61    depends_lib-append  port:hunspell
     62    depends_run-append  port:hunspell-dict-en_US
     63}
     64
     65variant applespell description {Enable AppleSpell backend, using system-wide OS X spell checker} {
     66    # the AppleSpell backend will always be built with this patch,
     67    # no configure flags required
     68    patchfiles-append   patch-applespell.diff \
     69                        patch-applespell-ordering.diff
     70}
     71
     72if {[variant_isset ispell] || [variant_isset aspell] || [variant_isset myspell]} {
     73    notes {
     74        enchant will use the first backend that provides a dictionary for the
     75        requested language. If you prefer a specific backend, please see the
     76        man page how you can change the lookup order. By default, the backend
     77        order is aspell, myspell, ispell, AppleSpell from highest to lowest
     78        preference.
     79
     80        $ man enchant
     81    }
     82}
    4283
    4384livecheck.type      regex
Note: See TracChangeset for help on using the changeset viewer.