Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2013 00:29:21 +0400
From:      Boris Samorodov <bsam@passap.ru>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        FreeBSD ports list <freebsd-ports@FreeBSD.org>
Subject:   Re: [HEADSUP] Stage support for the ports tree
Message-ID:  <5240A4A1.90606@passap.ru>
In-Reply-To: <20130923201800.GF73535@ithaqua.etoilebsd.net>
References:  <20130923134521.GZ73535@ithaqua.etoilebsd.net> <52408168.7000503@passap.ru> <20130923180144.GD73535@ithaqua.etoilebsd.net> <524083FF.3070409@passap.ru> <20130923201800.GF73535@ithaqua.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------010703000900030705030203
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

24.09.2013 00:18, Baptiste Daroussin пишет:
> On Mon, Sep 23, 2013 at 10:10:07PM +0400, Boris Samorodov wrote:
>> 23.09.2013 22:01, Baptiste Daroussin пишет:
>>> On Mon, Sep 23, 2013 at 09:59:04PM +0400, Boris Samorodov wrote:
>>>> 23.09.2013 17:45, Baptiste Daroussin пишет:
>>>>
>>>>> If you find any bug and have any diffulty to convert you port to stage
>>>>> directory, please report it.
>>>>
>>>> Are DESKTOP_ENTRIES supposed to work with stage?
>>>>
>>>
>>> Yes if not that needs to be fixed
>>
>> The Makefile does not define NO_STAGE=yes. However:
>> -----
>> % make -V DESKTOPDIR
>> /usr/local/share/applications
>> -----
>>
>> Should that be "${STAGEDIR}/usr/local/share/applications"?
>>
>> -- 
>> WBR, Boris Samorodov (bsam)
>> FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
> 
> Do you have a failing case?
> 
> From what I see it should work. and it is normal that DESKTOPDIR is
> /usr/local/share/applications when running make -VDESKTOPDIR

Minimal patch attached. I get the following error at "phase: stage":
http://gw.wart.ru/bulk/10-amd64-default/2013-09-23_20h32m32s/logs/errors/eos-movrec-0.3.2.b_1.log

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve

--------------010703000900030705030203
Content-Type: text/x-diff;
 name="eos-movrec.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="eos-movrec.diff"

Index: /poudriere/ports/default/graphics/eos-movrec/Makefile
===================================================================
--- /poudriere/ports/default/graphics/eos-movrec/Makefile	(revision 328026)
+++ /poudriere/ports/default/graphics/eos-movrec/Makefile	(working copy)
@@ -26,7 +26,6 @@
 DESKTOP_ENTRIES="EOS Camera Movie Recorder" "${COMMENT}" "${PORTNAME}" \
 		"eos_movrec" "Graphics;Photography;Qt;" false
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|GLIBC|${OPSYS}|' ${WRKSRC}/os_api.h
 .for s in 16 32 128 256 512
@@ -36,10 +35,10 @@
 
 post-install:
 .for s in ${ICON_SIZES}
-	@${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
 	${INSTALL_DATA} ${WRKSRC}/mac.icons/${PORTNAME}_${s}.png \
-		${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
+		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
 .endfor
-	${LN} -sf ${PREFIX}/share/icons/hicolor/32x32/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps/
+	${LN} -sf ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
 
 .include <bsd.port.mk>

--------------010703000900030705030203--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5240A4A1.90606>