From c9b3a3e50701e0cb1494857d85bee06c4c360750 Mon Sep 17 00:00:00 2001 From: Jo Inge Buskenes Date: Fri, 6 Jun 2014 00:44:20 +0200 Subject: Added CodeXL info message --- .../amdapp-codexl/amdapp-codexl-1.4.5728.ebuild | 95 ++-------------------- 1 file changed, 7 insertions(+), 88 deletions(-) (limited to 'dev-util') diff --git a/dev-util/amdapp-codexl/amdapp-codexl-1.4.5728.ebuild b/dev-util/amdapp-codexl/amdapp-codexl-1.4.5728.ebuild index b405bcd..2bf610b 100644 --- a/dev-util/amdapp-codexl/amdapp-codexl-1.4.5728.ebuild +++ b/dev-util/amdapp-codexl/amdapp-codexl-1.4.5728.ebuild @@ -99,10 +99,7 @@ RDEPEND="${DEPEND}" S="${WORKDIR}/AMD_CodeXL_Linux_x86_64_${PV}" CODEXL_DIR="opt/${P}" -# pkg_setup() { -# # enewgroup android -# } -# + pkg_preinst(){ dodir "${CODEXL_DIR}" cp -rpP ${S}/* "${D}${CODEXL_DIR}" || die @@ -117,89 +114,11 @@ pkg_preinst(){ pkg_postinst(){ env-update + + elog "AMD CodeXL is now fetched and installed to ${CODEXL_DIR}" + elog "" + elog "Not sure why, but I had to preload the OpenGL library path:" + elog ">> LD_LIBRARY_PATH=/usr/lib64/opengl/ati/lib CodeXL" + elog "" } -# -# # src_configure() { -# # econf --with-posix-regex -# # } -# -# src_install(){ -# declare CODEXL_DIR="/opt/${PN}" -# -# mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die -# -# } - -# src_install(){ -# # dodoc tools/NOTICE.txt "SDK Readme.txt" || die -# # rm -f tools/NOTICE.txt "SDK Readme.txt" -# -# dodir "${CODEXL_DIR}" -# cp -pPR AMD_CodeXL_Linux_x86_64_1.2.2484/Output_x86_64/release/* "${CODEXL_DIR}" || die "failed to install tools" -# -# # Maybe this is needed for the tools directory too. -# # dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp} || die "failed to dodir" -# -# # fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools} || die -# # fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools} || die -# # -# # echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die -# # -# # SWT_PATH= -# # SWT_VERSIONS="3.7 3.6" -# # for version in $SWT_VERSIONS; do -# # # redirecting stderr to /dev/null -# # # not sure if this is best, but avoids misleading error messages -# # SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`" -# # if [ $SWT_PATH ]; then -# # einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT." -# # break -# # fi -# # done -# # -# # echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die -# # -# # doenvd "${T}/80${PN}" || die -# # -# # echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die -# # -# # insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}" || die -# -# } - -# src_install() { -# emake DESTDIR="${D}" install || die -# -# dodoc FAQ NEWS README -# dohtml EXTENDING.html ctags.html -# -# } -#src_install() { - # You must *personally verify* that this trick doesn't install - # anything outside of DESTDIR; do this by reading and - # understanding the install part of the Makefiles. - # This is the preferred way to install. - #emake DESTDIR="${D}" install || die - - # When you hit a failure with emake, do not just use make. It is - # better to fix the Makefiles to allow proper parallelization. - # If you fail with that, use "emake -j1", it's still better than make. - - # For Makefiles that don't make proper use of DESTDIR, setting - # prefix is often an alternative. However if you do this, then - # you also need to specify mandir and infodir, since they were - # passed to ./configure as absolute paths (overriding the prefix - # setting). - #emake \ - # prefix="${D}"/usr \ - # mandir="${D}"/usr/share/man \ - # infodir="${D}"/usr/share/info \ - # libdir="${D}"/usr/$(get_libdir) \ - # install || die - # Again, verify the Makefiles! We don't want anything falling - # outside of ${D}. - # The portage shortcut to the above command is simply: - # - #einstall || die -#} -- cgit v1.2.3-65-gdbad