Skip to content
Snippets Groups Projects
Select Git revision
  • af3e669bdca3a719df2c62164809014366922b77
  • master default protected
  • 3.22-stable protected
  • 3.19-stable protected
  • 3.20-stable protected
  • 3.21-stable protected
  • 3.15-stable protected
  • 3.14-stable protected
  • 3.13-stable protected
  • 3.16-stable protected
  • 3.17-stable protected
  • 3.18-stable protected
  • 3.12-stable protected
  • aports-testing-ttl
  • 3.11-stable protected
  • patches/3808
  • patches/3977
  • patches/3998
  • 3.9-stable protected
  • 3.10-stable protected
  • patches/3888
  • v3.19.9 protected
  • v3.20.8 protected
  • v3.21.5 protected
  • v3.22.2 protected
  • v3.19.8 protected
  • v3.20.7 protected
  • v3.21.4 protected
  • v3.22.1 protected
  • v3.23.0_alpha20250612 protected
  • v3.22.0 protected
  • v3.22.0_rc4 protected
  • v3.22.0_rc3 protected
  • v3.22.0_rc2 protected
  • v3.22.0_rc1 protected
  • v3.18.12 protected
  • v3.19.7 protected
  • v3.20.6 protected
  • v3.21.3 protected
  • v20250108 protected
  • v3.21.2 protected
41 results

APKBUILD

Blame
  • APKBUILD 1.46 KiB
    # Contributor: Jakub Jirutka <jakub@jirutka.cz>
    # Maintainer:
    pkgname=merlin
    pkgver=3.6.1
    pkgrel=0
    pkgdesc="Context sensitive completion for OCaml"
    url="https://ocaml.github.io/merlin/"
    arch="all !mips64 !riscv64"  # limited by ocaml aport
    license="MIT"
    depends="ocaml ocaml-findlib"
    makedepends="
    	ocaml
    	ocaml-findlib-dev
    	ocaml-yojson-dev
    	"
    options="!check"  # XXX: tests are broken, see https://github.com/ocaml/merlin/issues/766
    subpackages="$pkgname-emacs::noarch $pkgname-vim::noarch"
    source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/merlin/archive/v$pkgver.tar.gz"
    builddir="$srcdir/$pkgname-$pkgver"
    
    # 32bit archs
    case "$CARCH" in
        arm*|x86) options="$options textrels" ;;
    esac
    
    build() {
    	cd "$builddir"
    	./configure --prefix /usr
    	make
    }
    
    check() {
    	cd "$builddir"
    	make test
    }
    
    package() {
    	cd "$builddir"
    	make DESTDIR="$pkgdir" install
    }
    
    emacs() {
    	pkgdesc="$pkgdesc in Emacs"
    	depends="$pkgname=$pkgver-r$pkgrel"
    	install_if="$pkgname=$pkgver-r$pkgrel emacs"
    
    	_submv usr/share/emacs
    }
    
    vim() {
    	pkgdesc="$pkgdesc in vim"
    	depends="$pkgname=$pkgver-r$pkgrel"
    	install_if="$pkgname=$pkgver-r$pkgrel vim"
    
    	_submv usr/share/ocamlmerlin/vim
    }
    
    _submv() {
    	local path="$1"
    	mkdir -p "$subpkgdir"/${path%/*}
    	mv "$pkgdir"/$path "$subpkgdir"/${path%/*}/
    	rmdir -p "$pkgdir"/${path%/*} 2>/dev/null || true
    }
    
    sha512sums="dd8232c5d39324ac14db12dc9f55a560d3eb444775e89dac7c3755cf3744a9939f85bb83cb0e5ddde5a3ea05da8b3ebf4958f81f473330574ca72afc6cbf32e9  merlin-3.6.1.tar.gz"