From 7101e80d6d97124ae6e2cef7b0aa2889ee896659 Mon Sep 17 00:00:00 2001 From: Nicolas Bigaouette Date: Mon, 30 Apr 2012 11:05:26 -0400 Subject: Create directories just before installing files to them. --- sys-devel/gdebugger/gdebugger-6.2.438.ebuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys-devel') diff --git a/sys-devel/gdebugger/gdebugger-6.2.438.ebuild b/sys-devel/gdebugger/gdebugger-6.2.438.ebuild index 2a45c3962..be3e939e5 100644 --- a/sys-devel/gdebugger/gdebugger-6.2.438.ebuild +++ b/sys-devel/gdebugger/gdebugger-6.2.438.ebuild @@ -35,9 +35,6 @@ S="${WORKDIR}/${My_PN}${PV}-${_arch}" _destination=/opt/${My_PN} src_install() { - dodir /usr/bin - dodir /usr/share/applications - cd ${WORKDIR} dodir `dirname ${_destination}` cp -a ${S} ${D}${_destination} @@ -46,10 +43,12 @@ src_install() { # link to it in /usr/bin thus cannot work. Instead, copy it to /usr/bin and # remove the autodetection of the script's directory and hardcode it to ${_destination}. # Then create a lowercase symbolic link to this new launcher. + dodir /usr/bin cp ${D}${_destination}/${My_PN} ${D}/usr/bin/${My_PN} sed "s|gDEBuggerBinariesDir=.*|gDEBuggerBinariesDir=\"${_destination}\"|g" -i ${D}/usr/bin/${My_PN} dosym /usr/bin/${My_PN} /usr/bin/${PN} + dodir /usr/share/applications cat >> ${D}/usr/share/applications/${PN}.desktop <<- EOF [Desktop Entry] Name=${My_PN} -- cgit v1.2.3-65-gdbad