diff --git a/sci-physics/geant/geant-4.9.2-r1.ebuild b/sci-physics/geant/geant-4.9.2-r1.ebuild
index 43f2b57..9bb90b4 100644
--- a/sci-physics/geant/geant-4.9.2-r1.ebuild
+++ b/sci-physics/geant/geant-4.9.2-r1.ebuild
@@ -80,6 +80,9 @@ src_prepare() {
 		config/common.gmk || die "sed common.gmk failed"
 	sed -i \
 		-e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \
+		config/moc.gmk || die "sed moc.gmk failed"
+	sed -i \
+		-e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \
 		-e 's:$(G4BIN)/$(G4SYSTEM):$(G4TMP):g' \
 		-e 's:$(G4TMP)/$(G4SYSTEM):$(G4TMP):g' \
 		source/GNUmakefile || die "sed GNUmakefile failed"