|
|
# -aqua -gtk -motif nextaw NEXTAW (7+) | # -aqua -gtk -motif nextaw NEXTAW (7+) |
# -aqua -gtk -motif -nextaw ATHENA | # -aqua -gtk -motif -nextaw ATHENA |
| |
inherit eutils vim-doc flag-o-matic versionator fdo-mime |
inherit eutils vim-doc flag-o-matic versionator fdo-mime alternatives |
| |
# Support -cvs ebuilds, even though they're not in the official tree. | # Support -cvs ebuilds, even though they're not in the official tree. |
MY_PN="${PN%-cvs}" | MY_PN="${PN%-cvs}" |
|
|
| |
else | else |
dobin src/vim | dobin src/vim |
ln -s vim ${D}/usr/bin/vimdiff && \ |
|
ln -s vim ${D}/usr/bin/rvim && \ |
|
ln -s vim ${D}/usr/bin/ex && \ |
|
ln -s vim ${D}/usr/bin/view && \ |
|
ln -s vim ${D}/usr/bin/rview \ |
|
|| die "/usr/bin symlinks failed" |
|
if [[ $(get_major_version ) -ge 7 ]] && use vim-pager ; then | if [[ $(get_major_version ) -ge 7 ]] && use vim-pager ; then |
ln -s /usr/share/vim/vim${VIM_VERSION//./}/macros/less.sh \ | ln -s /usr/share/vim/vim${VIM_VERSION//./}/macros/less.sh \ |
${D}/usr/bin/vimpager | ${D}/usr/bin/vimpager |
|
|
update_vim_symlinks() { | update_vim_symlinks() { |
local f syms | local f syms |
| |
# Some of these are provided already on x86-fbsd, bug 69535. |
syms="vimdiff rvim rview" |
if use x86-fbsd ; then |
|
syms="vimdiff rvim rview" |
|
else |
|
syms="vi vimdiff rvim ex view rview" |
|
fi |
|
| |
# Make or remove convenience symlink, vim -> gvim | # Make or remove convenience symlink, vim -> gvim |
if [[ -f ${ROOT}/usr/bin/gvim ]]; then | if [[ -f ${ROOT}/usr/bin/gvim ]]; then |
|
|
done | done |
fi | fi |
| |
# This will still break if you merge then remove the vi package, |
# These are provided already on x86-fbsd, bug 69535. |
# but there's only so much you can do, eh? Unfortunately we don't |
if ! use x86-fbsd ; then |
# have triggers like are done in rpm-land. |
alternatives_makesym /usr/bin/vi /usr/bin/vim /usr/bin/nvi |
|
alternatives_makesym /usr/bin/ex /usr/bin/vim /usr/bin/nex |
|
alternatives_makesym /usr/bin/view /usr/bin/vim /usr/bin/nview |
|
fi |
} | } |
| |
pkg_postinst() { | pkg_postinst() { |