View | Details | Raw Unified
Collapse All | Expand All

(-) a/geant-4.9.1_p02.ebuild (-5 / +8 lines)
 Lines 76-81   src_unpack() { Link Here 
		-e 's:$(G4BIN)/$(G4SYSTEM):$(G4TMP):g' \
		-e 's:$(G4BIN)/$(G4SYSTEM):$(G4TMP):g' \
		-e 's:$(G4TMP)/$(G4SYSTEM):$(G4TMP):g' \
		-e 's:$(G4TMP)/$(G4SYSTEM):$(G4TMP):g' \
		source/GNUmakefile || die "sed GNUmakefile failed"
		source/GNUmakefile || die "sed GNUmakefile failed"
	sed -i \
		-e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \
		config/globlib.gmk || die "sed globlib.gmk failed"
}
}
src_compile() {
src_compile() {
 Lines 124-139   src_compile() { Link Here 
	export G4LIB_BUILD_SHARED=y
	export G4LIB_BUILD_SHARED=y
	emake || die "Building shared geant failed"
	emake || die "Building shared geant failed"
	if use global; then
		export G4LIB_USE_GRANULAR=y
		emake global || die "Building global libraries failed"
	fi
	if use static; then
	if use static; then
		rm -rf tmp
		rm -rf tmp
		export G4LIB_BUILD_STATIC=y ; unset G4LIB_BUILD_SHARED
		export G4LIB_BUILD_STATIC=y ; unset G4LIB_BUILD_SHARED
		emake || die "Building static geant failed"
		emake || die "Building static geant failed"
	fi
	fi
	if use global; then
		export G4LIB_USE_GRANULAR=y
		emake global || die "Building global libraries failed"
	fi
}
}
g4_create_env_script() {
g4_create_env_script() {