dev-ocaml/batteries: initial import of version 2.5.0
Change-Id: I9e09e4517a37edb6581c24239dcd242151d61074 Reviewed-on: https://galileo.mailstation.de/gerrit/7418 Reviewed-by: Jenkins <wk@mailstation.de> Reviewed-by: Julian Ospald <hasufell@posteo.de>
This commit is contained in:
		
							parent
							
								
									6e129fc197
								
							
						
					
					
						commit
						8ff8bb4575
					
				
							
								
								
									
										36
									
								
								packages/dev-ocaml/batteries/batteries-2.5.0.exheres-0
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								packages/dev-ocaml/batteries/batteries-2.5.0.exheres-0
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,36 @@
 | 
			
		||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
 | 
			
		||||
# Distributed under the terms of the GNU General Public License v2
 | 
			
		||||
 | 
			
		||||
require github [ user="ocaml-batteries-team" project="batteries-included" tag="v${PV}" ]
 | 
			
		||||
 | 
			
		||||
SUMMARY="A comprehensive standard library for OCaml"
 | 
			
		||||
HOMEPAGE="http://ocaml-batteries-team.github.io/batteries-included/hdoc2/ ${HOMEPAGE}"
 | 
			
		||||
 | 
			
		||||
LICENCES="LGPL-2.1"
 | 
			
		||||
SLOT="0"
 | 
			
		||||
PLATFORMS="~amd64"
 | 
			
		||||
MYOPTIONS=""
 | 
			
		||||
 | 
			
		||||
DEPENDENCIES="
 | 
			
		||||
    build:
 | 
			
		||||
        dev-ocaml/findlib
 | 
			
		||||
        dev-ocaml/ocamlbuild
 | 
			
		||||
    build+run:
 | 
			
		||||
        dev-lang/ocaml
 | 
			
		||||
"
 | 
			
		||||
 | 
			
		||||
BUGS_TO="hasufell@posteo.de"
 | 
			
		||||
 | 
			
		||||
src_compile() {
 | 
			
		||||
    OCAMLBUILD="ocamlbuild -no-links" emake -j1 all doc
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
src_install() {
 | 
			
		||||
    local ocaml_dest="$(/usr/$(exhost --target)/bin/ocamlfind printconf destdir)"
 | 
			
		||||
    export OCAMLFIND_DESTDIR="${IMAGE%/}/${ocaml_dest}"
 | 
			
		||||
    dodir "${ocaml_dest}"
 | 
			
		||||
 | 
			
		||||
    OCAMLBUILD="ocamlbuild -no-links" emake install
 | 
			
		||||
    DOCROOT="${IMAGE%/}/usr/share/doc/${PNVR}/" emake install-doc
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user