dev-ocaml/yojson: initial import
Change-Id: I7bf82e54597258f1b48b27c671409427ca78ebde Reviewed-on: https://galileo.mailstation.de/gerrit/7423 Reviewed-by: Jenkins <wk@mailstation.de> Reviewed-by: Julian Ospald <hasufell@posteo.de>
This commit is contained in:
		
							parent
							
								
									f2637d9b2e
								
							
						
					
					
						commit
						93a7a3af9a
					
				
							
								
								
									
										43
									
								
								packages/dev-ocaml/yojson/yojson-1.3.2.exheres-0
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								packages/dev-ocaml/yojson/yojson-1.3.2.exheres-0
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,43 @@
 | 
			
		||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
 | 
			
		||||
# Distributed under the terms of the GNU General Public License v2
 | 
			
		||||
 | 
			
		||||
require github [ user="mjambon" tag="v${PV}" ]
 | 
			
		||||
 | 
			
		||||
SUMMARY="JSON parsing and pretty-printing library for OCaml"
 | 
			
		||||
HOMEPAGE="https://mjambon.github.io/atdgen-doc/ ${HOMEPAGE}"
 | 
			
		||||
 | 
			
		||||
LICENCES="BSD-3"
 | 
			
		||||
SLOT="0"
 | 
			
		||||
PLATFORMS="~amd64 ~x86"
 | 
			
		||||
MYOPTIONS=""
 | 
			
		||||
 | 
			
		||||
DEPENDENCIES="
 | 
			
		||||
    build:
 | 
			
		||||
        dev-ocaml/findlib
 | 
			
		||||
    build+run:
 | 
			
		||||
        dev-lang/ocaml
 | 
			
		||||
        dev-ocaml/biniou
 | 
			
		||||
        dev-ocaml/cppo
 | 
			
		||||
        dev-ocaml/easy-format
 | 
			
		||||
"
 | 
			
		||||
 | 
			
		||||
BUGS_TO="hasufell@posteo.de"
 | 
			
		||||
 | 
			
		||||
DEFAULT_SRC_COMPILE_PARAMS=(
 | 
			
		||||
    -j1
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
src_prepare() {
 | 
			
		||||
    edo sed -i \
 | 
			
		||||
            -e "s#ocamlfind install#ocamlfind install -destdir \"${IMAGE}$(/usr/$(exhost --target)/bin/ocamlfind printconf destdir)\"#" \
 | 
			
		||||
            Makefile
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
src_install() {
 | 
			
		||||
    dodir /usr/$(exhost --target)/bin
 | 
			
		||||
    dodir "$(/usr/$(exhost --target)/bin/ocamlfind printconf destdir)"/yojson
 | 
			
		||||
    emake -j1 \
 | 
			
		||||
        BINDIR="${IMAGE%/}/usr/$(exhost --target)/bin" \
 | 
			
		||||
        install
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user