profiles/prefix/linux-standalone: remove perl android logics.
authorBenda Xu <heroxbd@gentoo.org>
Tue, 7 Jun 2016 02:35:34 +0000 (11:35 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Tue, 7 Jun 2016 02:36:17 +0000 (11:36 +0900)
profiles/prefix/linux-standalone/profile.bashrc

index 8399ce654427255c59bf6bb57c5cc3cb9e70ef9a..2b0e3b1b23d018b7c2d90839c5438323e954c465 100644 (file)
@@ -60,8 +60,13 @@ elif [[ ${CATEGORY}/${PN} == dev-lang/python && ${EBUILD_PHASE} == configure ]];
     eend $?
 elif [[ ${CATEGORY}/${PN} == dev-lang/perl && ${EBUILD_PHASE} == configure ]]; then
     ebegin "Prefixifying pwd path"
-    sed -i -r \
-       -e "s,'((|/usr)/bin/pwd),'${EPREFIX}\1," "${S}"/dist/PathTools/Cwd.pm
+    sed -r "s,'((|/usr)/bin/pwd),'${EPREFIX}\1," -i "${S}"/dist/PathTools/Cwd.pm
+    eend $?
+
+    # Configure checks for /system/lib/libandroid.so to override linux into linux-android,
+    # which is not desired for Gentoo
+    ebegin "Removing Android detection"
+    sed "/libandroid.so/d" -i "${S}"/Configure
     eend $?
 elif [[ ${CATEGORY}/${PN} == sys-devel/make && ${EBUILD_PHASE} == prepare ]]; then
     ebegin "Prefixifying default shell"