aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-01 09:41:16 -0700
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-03-05 09:47:25 +0000
commitd2f67e7998878e46cb3dbdda585b76f2330f9a10 (patch)
tree05c4f807de657bd2bd48cfd5c4318c5820c91c02 /main
parent0a4f50156a2cf3686810848a8a6b7587c352eede (diff)
downloadaports-d2f67e7998878e46cb3dbdda585b76f2330f9a10.tar.bz2
aports-d2f67e7998878e46cb3dbdda585b76f2330f9a10.tar.xz
main/vim: add gvim package
Diffstat (limited to 'main')
-rw-r--r--main/vim/APKBUILD34
1 files changed, 31 insertions, 3 deletions
diff --git a/main/vim/APKBUILD b/main/vim/APKBUILD
index 9a48bf7d41..c52f8f67a2 100644
--- a/main/vim/APKBUILD
+++ b/main/vim/APKBUILD
@@ -4,14 +4,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vim
pkgver=8.1.0829
-pkgrel=0
+pkgrel=1
pkgdesc="Improved vi-style text editor"
url="https://www.vim.org"
arch="all"
license="Vim"
options="!check" # some tests are failing
-makedepends="ncurses-dev lua5.3-dev python3-dev"
-subpackages="$pkgname-doc ${pkgname}diff::noarch"
+makedepends="ncurses-dev lua5.3-dev python3-dev gtk+3.0-dev libx11-dev libxt-dev"
+subpackages="$pkgname-doc ${pkgname}diff::noarch gvim"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
vimrc
"
@@ -30,6 +30,7 @@ prepare() {
cd "$builddir"
# Read vimrc from /etc/vim
echo '#define SYS_VIMRC_FILE "/etc/vim/vimrc"' >> src/feature.h
+ cp -r "$builddir" "$builddir"-gvim
}
build() {
@@ -47,6 +48,20 @@ build() {
--with-lua-prefix=/usr/lua5.3 \
--with-compiledby="Alpine Linux"
make
+ cd "$builddir"-gvim
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-luainterp \
+ --enable-python3interp=dynamic \
+ --with-x \
+ --disable-nls \
+ --enable-multibyte \
+ --enable-gui=gtk3 \
+ --with-lua-prefix=/usr/lua5.3 \
+ --with-compiledby="Alpine Linux"
+ make
}
check() {
@@ -63,6 +78,19 @@ package() {
install -Dm644 "$srcdir"/vimrc "$pkgdir"/etc/vim/vimrc
}
+gvim() {
+ pkgdesc="advanced text editor, with GUI"
+ conflicts="vim"
+ provides="vim"
+ cd "$builddir"-gvim
+ make -j1 DESTDIR="$subpkgdir/" install
+
+ install -Dm644 runtime/doc/uganda.txt \
+ "$subpkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "$srcdir"/vimrc "$subpkgdir"/etc/vim/vimrc
+ rm -rf "$subpkgdir"/usr/share/man
+}
+
vimdiff() {
pkgdesc="view file diffs in vim"
depends="diffutils"