Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231314 | Differences between
and this patch

Collapse All | Expand All

(-)a/geant-4.9.1_p02.ebuild (-5 / +8 lines)
Lines 76-81 src_unpack() { Link Here
76
		-e 's:$(G4BIN)/$(G4SYSTEM):$(G4TMP):g' \
76
		-e 's:$(G4BIN)/$(G4SYSTEM):$(G4TMP):g' \
77
		-e 's:$(G4TMP)/$(G4SYSTEM):$(G4TMP):g' \
77
		-e 's:$(G4TMP)/$(G4SYSTEM):$(G4TMP):g' \
78
		source/GNUmakefile || die "sed GNUmakefile failed"
78
		source/GNUmakefile || die "sed GNUmakefile failed"
79
	sed -i \
80
		-e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \
81
		config/globlib.gmk || die "sed globlib.gmk failed"
79
}
82
}
80
83
81
src_compile() {
84
src_compile() {
Lines 124-139 src_compile() { Link Here
124
	export G4LIB_BUILD_SHARED=y
127
	export G4LIB_BUILD_SHARED=y
125
	emake || die "Building shared geant failed"
128
	emake || die "Building shared geant failed"
126
129
130
	if use global; then
131
		export G4LIB_USE_GRANULAR=y
132
		emake global || die "Building global libraries failed"
133
	fi
134
127
	if use static; then
135
	if use static; then
128
		rm -rf tmp
136
		rm -rf tmp
129
		export G4LIB_BUILD_STATIC=y ; unset G4LIB_BUILD_SHARED
137
		export G4LIB_BUILD_STATIC=y ; unset G4LIB_BUILD_SHARED
130
		emake || die "Building static geant failed"
138
		emake || die "Building static geant failed"
131
	fi
139
	fi
132
133
	if use global; then
134
		export G4LIB_USE_GRANULAR=y
135
		emake global || die "Building global libraries failed"
136
	fi
137
}
140
}
138
141
139
g4_create_env_script() {
142
g4_create_env_script() {

Return to bug 231314