From 7402ca93ec5a916b49456bcacfc4343599bb3281 Mon Sep 17 00:00:00 2001 From: John Marino Date: Wed, 30 Jul 2014 19:16:24 +0000 Subject: [PATCH] Stage x11-clocks/intclock PR: 192259 Submitted by: fullermd (over-yonder.net) Refinement: marino --- x11-clocks/intclock/Makefile | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/x11-clocks/intclock/Makefile b/x11-clocks/intclock/Makefile index 53692036f19d..33f2abfd39f6 100644 --- a/x11-clocks/intclock/Makefile +++ b/x11-clocks/intclock/Makefile @@ -16,18 +16,22 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} USES= perl5 USE_PERL5= configure -NO_STAGE= yes post-patch: - @${REINPLACE_CMD} -e \ - 's|$$zonedir/$$countryfile|/usr/share/misc/iso3166|' \ - ${WRKSRC}/lib/Intclock/TZ.pm - @${REINPLACE_CMD} -e 's|$$prefix/share/intclock|${DATADIR}|;\ - s|/usr/share|${PREFIX}/share|' ${WRKSRC}/Makefile.PL - @${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|;\ - s|/usr/share/intclock|${DATADIR}|' ${WRKSRC}/data/intclock.desktop + @${REINPLACE_CMD} \ + -e 's|$$zonedir/$$countryfile|/usr/share/misc/iso3166|' \ + ${WRKSRC}/lib/Intclock/TZ.pm + @${REINPLACE_CMD} \ + -e 's|$$prefix/share/intclock|${DATADIR}|' \ + -e 's|/usr/share|$$(DESTDIR)${PREFIX}/share|' \ + -e 's|DATADIR = $$datadir|DATADIR = $$(DESTDIR)$$datadir|' \ + ${WRKSRC}/Makefile.PL + @${REINPLACE_CMD} \ + -e 's|/usr/bin|${PREFIX}/bin|' \ + -e 's|/usr/share/intclock|${DATADIR}|' \ + ${WRKSRC}/data/intclock.desktop @${FIND} ${WRKSRC} -name \*.bak -delete pre-install: - @${INSTALL} -d ${PREFIX}/share/applications/ + @${MKDIR} ${STAGEDIR}${PREFIX}/share/applications/ .include