forked from hasufell/hasufell-repository
		
	dev-ocaml/cppo: initial import
Change-Id: I7200c58e0475ca7b2ba747ed65a470ab89e0c1ff Reviewed-on: https://galileo.mailstation.de/gerrit/7421 Reviewed-by: Jenkins <wk@mailstation.de> Reviewed-by: Julian Ospald <hasufell@posteo.de>
This commit is contained in:
		
							parent
							
								
									4e93d61070
								
							
						
					
					
						commit
						2ead089c9c
					
				
							
								
								
									
										37
									
								
								packages/dev-ocaml/cppo/cppo-1.4.0.exheres-0
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								packages/dev-ocaml/cppo/cppo-1.4.0.exheres-0
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,37 @@
 | 
				
			|||||||
 | 
					# 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="C-style preprocessor for OCaml"
 | 
				
			||||||
 | 
					HOMEPAGE="http://mjambon.com/cppo.html ${HOMEPAGE}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					LICENCES="BSD-3"
 | 
				
			||||||
 | 
					SLOT="0"
 | 
				
			||||||
 | 
					PLATFORMS="~amd64 ~x86"
 | 
				
			||||||
 | 
					MYOPTIONS=""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					DEPENDENCIES="
 | 
				
			||||||
 | 
					    build:
 | 
				
			||||||
 | 
					        dev-ocaml/findlib
 | 
				
			||||||
 | 
					        dev-ocaml/ocamlbuild
 | 
				
			||||||
 | 
					    build+run:
 | 
				
			||||||
 | 
					        dev-lang/ocaml
 | 
				
			||||||
 | 
					"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					BUGS_TO="hasufell@posteo.de"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					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)"/cppo_ocamlbuild
 | 
				
			||||||
 | 
					    emake -j1 \
 | 
				
			||||||
 | 
					        BINDIR="${IMAGE%/}/usr/$(exhost --target)/bin" \
 | 
				
			||||||
 | 
					        install
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user