From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 03:27:43 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 363D41065696; Tue, 28 Feb 2012 03:27:43 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8FC4F8FC16; Tue, 28 Feb 2012 03:27:42 +0000 (UTC) Received: by eekd17 with SMTP id d17so1669425eek.13 for ; Mon, 27 Feb 2012 19:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=hNbbF55I0hziqmU1DMxUriYdZzWXpUbwoQ056IFdOfU=; b=EG0B5mmdMhBTXp5oE/ooaNMhFfha/DguvcndkXdlVLYAKkMbmay5Dj/Hj3yrYyZbjk /sBada0L+Cyc9jpboNR6aJHaBZqqzPMttQjnwFrzp2j+K8kKptPNgTOJToxvdTP+OOiv 07KdQFMnNvAlXi2pXdDE8Fy+1z0aHKh6E+NGo= Received: by 10.14.94.133 with SMTP id n5mr7287481eef.104.1330397831131; Mon, 27 Feb 2012 18:57:11 -0800 (PST) Received: from woodstock.peanuts ([95.236.70.210]) by mx.google.com with ESMTPS id w60sm65074630eeb.4.2012.02.27.18.57.09 (version=SSLv3 cipher=OTHER); Mon, 27 Feb 2012 18:57:10 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: freebsd-desktop@freebsd.org Date: Tue, 28 Feb 2012 03:57:02 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201201201004.36979.avilla@freebsd.org> In-Reply-To: <201201201004.36979.avilla@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2204676.ihX3QEKVic"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202280357.05198.avilla@freebsd.org> Cc: rflynn@acsalaska.net, desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 03:27:43 -0000 --nextPart2204676.ihX3QEKVic Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable I'm making a port for a font, so I'm stepping into this. On Friday 20 January 2012 10:04:34 Alberto Villa wrote: > On Friday 20 January 2012 07:51:41 Baptiste Daroussin wrote: > > I have seen that some ports use INSTALLS_* from bsd.xorg.mk, some >=20 > others do >=20 > > the mkfontscale first and directly package the fonts.scale fonts.* stuff > > in the package. When not using XORG_CAT=3Dfont and INSTALLS_TTF=3Dyes, ports just mimic=20 that behaviour, with some deviations (like installing fonts.scale and=20 fonts.dirs files) which appear not to be optimal. I will try converting som= e=20 ports to bsd.xorg.mk magic and see what changes. > > (do we still need that FontPath thing?, if no then the > > pkg-message asking people to fill it should be dropped) >=20 > I think we do, but will try and report. I'm currently running KDE with stock FontPath's, and I can use my port- installed fonts. Seems like fontconfig takes care of this. Thus, there's no= =20 pkg-message in my port. I wonder, though, if there's still software not using fontconfig: I guess=20 that, in that case, FontPath might be required. > > If you are not willing to write the page, I'll do, but I need someone > > describing me how things are working together in the font world. >=20 > Unfortunately I don't know this kind of stuff. If no one here does, we > might call for help in x11@ (eadler?)... I had a discussion with melflynn in #bsdports which brought to the=20 conclusion that the magic is already there, and it should be used. I will t= est=20 it, and if it works fine, I can try writing a prototype of the page. It=20 shouldn't take too much time. By the way, I'm including him in the thread. Keep him CCed as he's not=20 subscribed (currently). melflynn: did I say something wrong? =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla Murder is always a mistake -- one should never do anything one cannot talk about after dinner. -- Oscar Wilde, "The Picture of Dorian Gray" --nextPart2204676.ihX3QEKVic Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9MQoEACgkQ3xiC6kQ1Cov3GwP/dra5Xs08Xx4ycRzMBr6UIJFM UzrtSxG15a6Ry2tpG1DwP+Up/JlzZazS69tVq3GkIpZmNGo/pXIFyRVuZwBxJMJY BjWRYacUE3oXOYTTpdgMxKhSgHzj8JyTZM4zuSPHMqsQx5hmvSQl9ko5ZzF49Tfj 7ijyjodxRD1LFRVX+D8= =FB+e -----END PGP SIGNATURE----- --nextPart2204676.ihX3QEKVic-- From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 03:27:43 2012 Return-Path: Delivered-To: desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 363D41065696; Tue, 28 Feb 2012 03:27:43 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8FC4F8FC16; Tue, 28 Feb 2012 03:27:42 +0000 (UTC) Received: by eekd17 with SMTP id d17so1669425eek.13 for ; Mon, 27 Feb 2012 19:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=hNbbF55I0hziqmU1DMxUriYdZzWXpUbwoQ056IFdOfU=; b=EG0B5mmdMhBTXp5oE/ooaNMhFfha/DguvcndkXdlVLYAKkMbmay5Dj/Hj3yrYyZbjk /sBada0L+Cyc9jpboNR6aJHaBZqqzPMttQjnwFrzp2j+K8kKptPNgTOJToxvdTP+OOiv 07KdQFMnNvAlXi2pXdDE8Fy+1z0aHKh6E+NGo= Received: by 10.14.94.133 with SMTP id n5mr7287481eef.104.1330397831131; Mon, 27 Feb 2012 18:57:11 -0800 (PST) Received: from woodstock.peanuts ([95.236.70.210]) by mx.google.com with ESMTPS id w60sm65074630eeb.4.2012.02.27.18.57.09 (version=SSLv3 cipher=OTHER); Mon, 27 Feb 2012 18:57:10 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: freebsd-desktop@freebsd.org Date: Tue, 28 Feb 2012 03:57:02 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201201201004.36979.avilla@freebsd.org> In-Reply-To: <201201201004.36979.avilla@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2204676.ihX3QEKVic"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202280357.05198.avilla@freebsd.org> Cc: rflynn@acsalaska.net, desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 03:27:43 -0000 --nextPart2204676.ihX3QEKVic Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable I'm making a port for a font, so I'm stepping into this. On Friday 20 January 2012 10:04:34 Alberto Villa wrote: > On Friday 20 January 2012 07:51:41 Baptiste Daroussin wrote: > > I have seen that some ports use INSTALLS_* from bsd.xorg.mk, some >=20 > others do >=20 > > the mkfontscale first and directly package the fonts.scale fonts.* stuff > > in the package. When not using XORG_CAT=3Dfont and INSTALLS_TTF=3Dyes, ports just mimic=20 that behaviour, with some deviations (like installing fonts.scale and=20 fonts.dirs files) which appear not to be optimal. I will try converting som= e=20 ports to bsd.xorg.mk magic and see what changes. > > (do we still need that FontPath thing?, if no then the > > pkg-message asking people to fill it should be dropped) >=20 > I think we do, but will try and report. I'm currently running KDE with stock FontPath's, and I can use my port- installed fonts. Seems like fontconfig takes care of this. Thus, there's no= =20 pkg-message in my port. I wonder, though, if there's still software not using fontconfig: I guess=20 that, in that case, FontPath might be required. > > If you are not willing to write the page, I'll do, but I need someone > > describing me how things are working together in the font world. >=20 > Unfortunately I don't know this kind of stuff. If no one here does, we > might call for help in x11@ (eadler?)... I had a discussion with melflynn in #bsdports which brought to the=20 conclusion that the magic is already there, and it should be used. I will t= est=20 it, and if it works fine, I can try writing a prototype of the page. It=20 shouldn't take too much time. By the way, I'm including him in the thread. Keep him CCed as he's not=20 subscribed (currently). melflynn: did I say something wrong? =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla Murder is always a mistake -- one should never do anything one cannot talk about after dinner. -- Oscar Wilde, "The Picture of Dorian Gray" --nextPart2204676.ihX3QEKVic Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9MQoEACgkQ3xiC6kQ1Cov3GwP/dra5Xs08Xx4ycRzMBr6UIJFM UzrtSxG15a6Ry2tpG1DwP+Up/JlzZazS69tVq3GkIpZmNGo/pXIFyRVuZwBxJMJY BjWRYacUE3oXOYTTpdgMxKhSgHzj8JyTZM4zuSPHMqsQx5hmvSQl9ko5ZzF49Tfj 7ijyjodxRD1LFRVX+D8= =FB+e -----END PGP SIGNATURE----- --nextPart2204676.ihX3QEKVic-- From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 12:14:17 2012 Return-Path: Delivered-To: desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C6FB106567B; Tue, 28 Feb 2012 12:14:17 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8A4C28FC26; Tue, 28 Feb 2012 12:14:16 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2611366bkc.13 for ; Tue, 28 Feb 2012 04:14:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=nbRKtB70y1zY3iRlyOu4FRugERbh7SmEDyU4Tp0BS24=; b=uEVFsmMEJz5f4Jyu9cc4RJWVF0IKk5DqdND+7pqrhHPNUIZA50+CZw1Dizj3Lbrk/A HIU3/l7kcNt2shHWBDxY1cm7ENxb/w/eKgAR/10jqBw4HndQckcq03xnsTDzQfbr0SmM 5LpyG03Am6NzF0yCGdptTXFhcvxAmqwN1aWJw= Received: by 10.204.143.151 with SMTP id v23mr7619638bku.63.1330431255443; Tue, 28 Feb 2012 04:14:15 -0800 (PST) Received: from woodstock.peanuts (wifinat-16.polito.it. [130.192.232.16]) by mx.google.com with ESMTPS id w15sm30839415bku.0.2012.02.28.04.14.14 (version=SSLv3 cipher=OTHER); Tue, 28 Feb 2012 04:14:14 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: freebsd-desktop@freebsd.org Date: Tue, 28 Feb 2012 13:14:10 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201201201004.36979.avilla@freebsd.org> <201202280357.05198.avilla@freebsd.org> In-Reply-To: <201202280357.05198.avilla@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4146270.DkoGryWCUQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202281314.13503.avilla@freebsd.org> Cc: rflynn@acsalaska.net, desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 12:14:17 -0000 --nextPart4146270.DkoGryWCUQ Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tuesday 28 February 2012 03:57:02 Alberto Villa wrote: > When not using XORG_CAT=3Dfont and INSTALLS_TTF=3Dyes, ports just=20 mimic > that behaviour, with some deviations (like installing fonts.scale and > fonts.dirs files) which appear not to be optimal. I will try converting > some ports to bsd.xorg.mk magic and see what changes. I had a closer look at the process, and read some documentation as well. fontconfig is *required* to be run after installation to update fontconfig= =20 system fonts cache. Some ports which run it explicitly don't pass option -s= =20 (while bsd.xorg.mk does), thus updating also user's (in that case, root's!)= =20 cache, which is not what we want. fc-cache @exec line in bsd.xorg.mk is=20 thus correct and *required*. I'm not sure about @unexec line, though. It doesn't remove the font from=20 the cache, so the only reason for its existence I can think of is if a port= =20 overwrites a font installed by another port, and on deinstallation it resto= res=20 it. But this sounds like something which should not happen by design.=20 melflynn: ideas on why that line could be there? Meanwhile, I'll see if I c= an=20 ask to the author of that code. If it's useless, it should be removed, as i= t=20 also slows down a bit the port deinstallation. A @unexec line should also be added by bsd.xorg.mk to remove=20 font.cache-1 files. According to melflynn, they're backup files created by= =20 (old?) fc-cache, so let's do some garbage cleaning. mkfontscale and mkfontdir are *required* to update X fonts cache (i.e.,=20 font.scale and font.dir files). We could package font.* files, but this wou= ld=20 break horribly if we end up installing two ports in the same directory. So,= =20 since we already have to put fc-cache in post installation scripts, there's= no=20 reason in not adding those too. Plus, if we want to package those files, we= =20 need to keep them in sync with the fonts on every update, which is sub- optimal. Both @exec and @unexec lines are *required* here, still for the "n= =20 ports, 1 directory" reason above. > > > (do we still need that FontPath thing?, if no then the > > > pkg-message asking people to fill it should be dropped) > >=20 > > I think we do, but will try and report. >=20 > I'm currently running KDE with stock FontPath's, and I can use my port- > installed fonts. Seems like fontconfig takes care of this. Thus, there's = no > pkg-message in my port. > I wonder, though, if there's still software not using fontconfig: I guess > that, in that case, FontPath might be required. Apparently there is some, so the pkg-message is still required (without the= =20 line about loading FreeType). I'd like to fill it via bsd.xorg.mk, but that= =20 wouldn't let maintainers write their custom pkg-message. Maybe we could=20 make it conditional, i.e., if maintainer didn't set any pkg-message, write = it=20 automatically. About the packaging issue: I know I've talked about @exec's and=20 @unexec's above, but I think we can convert them to standard post-*=20 scripts. Can't we? This would conflict with maintainers custom scripts, of= =20 course, just like pkg-message, but the solution might be the same. =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das nennen sie ihren Standpunkt. --nextPart4146270.DkoGryWCUQ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9MxRUACgkQ3xiC6kQ1Cot63wQAqwsCcv9W5G+9RX5ACs5y4jfF ImtmyVUpU1rHnhoyuV2NExAWrwi6V5haEuum9q3vA7KRqFcoONZ+++BjzAtvCKlp FgLA+5AhuL80ct9zRPNzoiI1UDU2Yfw42h+654u/IAU1a2mlTpgnqyEwZoREXMto L9jt2/wRSP3xPmjlfDc= =GRIh -----END PGP SIGNATURE----- --nextPart4146270.DkoGryWCUQ-- From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 12:14:17 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C6FB106567B; Tue, 28 Feb 2012 12:14:17 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8A4C28FC26; Tue, 28 Feb 2012 12:14:16 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2611366bkc.13 for ; Tue, 28 Feb 2012 04:14:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=nbRKtB70y1zY3iRlyOu4FRugERbh7SmEDyU4Tp0BS24=; b=uEVFsmMEJz5f4Jyu9cc4RJWVF0IKk5DqdND+7pqrhHPNUIZA50+CZw1Dizj3Lbrk/A HIU3/l7kcNt2shHWBDxY1cm7ENxb/w/eKgAR/10jqBw4HndQckcq03xnsTDzQfbr0SmM 5LpyG03Am6NzF0yCGdptTXFhcvxAmqwN1aWJw= Received: by 10.204.143.151 with SMTP id v23mr7619638bku.63.1330431255443; Tue, 28 Feb 2012 04:14:15 -0800 (PST) Received: from woodstock.peanuts (wifinat-16.polito.it. [130.192.232.16]) by mx.google.com with ESMTPS id w15sm30839415bku.0.2012.02.28.04.14.14 (version=SSLv3 cipher=OTHER); Tue, 28 Feb 2012 04:14:14 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: freebsd-desktop@freebsd.org Date: Tue, 28 Feb 2012 13:14:10 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201201201004.36979.avilla@freebsd.org> <201202280357.05198.avilla@freebsd.org> In-Reply-To: <201202280357.05198.avilla@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4146270.DkoGryWCUQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202281314.13503.avilla@freebsd.org> Cc: rflynn@acsalaska.net, desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 12:14:17 -0000 --nextPart4146270.DkoGryWCUQ Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tuesday 28 February 2012 03:57:02 Alberto Villa wrote: > When not using XORG_CAT=3Dfont and INSTALLS_TTF=3Dyes, ports just=20 mimic > that behaviour, with some deviations (like installing fonts.scale and > fonts.dirs files) which appear not to be optimal. I will try converting > some ports to bsd.xorg.mk magic and see what changes. I had a closer look at the process, and read some documentation as well. fontconfig is *required* to be run after installation to update fontconfig= =20 system fonts cache. Some ports which run it explicitly don't pass option -s= =20 (while bsd.xorg.mk does), thus updating also user's (in that case, root's!)= =20 cache, which is not what we want. fc-cache @exec line in bsd.xorg.mk is=20 thus correct and *required*. I'm not sure about @unexec line, though. It doesn't remove the font from=20 the cache, so the only reason for its existence I can think of is if a port= =20 overwrites a font installed by another port, and on deinstallation it resto= res=20 it. But this sounds like something which should not happen by design.=20 melflynn: ideas on why that line could be there? Meanwhile, I'll see if I c= an=20 ask to the author of that code. If it's useless, it should be removed, as i= t=20 also slows down a bit the port deinstallation. A @unexec line should also be added by bsd.xorg.mk to remove=20 font.cache-1 files. According to melflynn, they're backup files created by= =20 (old?) fc-cache, so let's do some garbage cleaning. mkfontscale and mkfontdir are *required* to update X fonts cache (i.e.,=20 font.scale and font.dir files). We could package font.* files, but this wou= ld=20 break horribly if we end up installing two ports in the same directory. So,= =20 since we already have to put fc-cache in post installation scripts, there's= no=20 reason in not adding those too. Plus, if we want to package those files, we= =20 need to keep them in sync with the fonts on every update, which is sub- optimal. Both @exec and @unexec lines are *required* here, still for the "n= =20 ports, 1 directory" reason above. > > > (do we still need that FontPath thing?, if no then the > > > pkg-message asking people to fill it should be dropped) > >=20 > > I think we do, but will try and report. >=20 > I'm currently running KDE with stock FontPath's, and I can use my port- > installed fonts. Seems like fontconfig takes care of this. Thus, there's = no > pkg-message in my port. > I wonder, though, if there's still software not using fontconfig: I guess > that, in that case, FontPath might be required. Apparently there is some, so the pkg-message is still required (without the= =20 line about loading FreeType). I'd like to fill it via bsd.xorg.mk, but that= =20 wouldn't let maintainers write their custom pkg-message. Maybe we could=20 make it conditional, i.e., if maintainer didn't set any pkg-message, write = it=20 automatically. About the packaging issue: I know I've talked about @exec's and=20 @unexec's above, but I think we can convert them to standard post-*=20 scripts. Can't we? This would conflict with maintainers custom scripts, of= =20 course, just like pkg-message, but the solution might be the same. =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das nennen sie ihren Standpunkt. --nextPart4146270.DkoGryWCUQ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9MxRUACgkQ3xiC6kQ1Cot63wQAqwsCcv9W5G+9RX5ACs5y4jfF ImtmyVUpU1rHnhoyuV2NExAWrwi6V5haEuum9q3vA7KRqFcoONZ+++BjzAtvCKlp FgLA+5AhuL80ct9zRPNzoiI1UDU2Yfw42h+654u/IAU1a2mlTpgnqyEwZoREXMto L9jt2/wRSP3xPmjlfDc= =GRIh -----END PGP SIGNATURE----- --nextPart4146270.DkoGryWCUQ-- From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 14:13:52 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 808E7106564A for ; Tue, 28 Feb 2012 14:13:52 +0000 (UTC) (envelope-from rflynn@acsalaska.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 36E158FC08 for ; Tue, 28 Feb 2012 14:13:51 +0000 (UTC) Received: from [127.0.0.1] (squeeze.lan.rachie.is-a-geek.net [192.168.2.30]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 2CB7E7E854; Tue, 28 Feb 2012 04:57:11 -0900 (AKST) Message-ID: <4F4CDD40.1030906@acsalaska.net> Date: Tue, 28 Feb 2012 14:57:20 +0100 From: Mel Flynn User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Alberto Villa References: <20120120065141.GM4729@azathoth.lan> <201201201004.36979.avilla@freebsd.org> <201202280357.05198.avilla@freebsd.org> <201202281314.13503.avilla@freebsd.org> In-Reply-To: <201202281314.13503.avilla@freebsd.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 14:13:52 -0000 On 2/28/2012 13:14, Alberto Villa wrote: > On Tuesday 28 February 2012 03:57:02 Alberto Villa wrote: >> When not using XORG_CAT=font and INSTALLS_TTF=yes, ports just > mimic >> that behaviour, with some deviations (like installing fonts.scale and >> fonts.dirs files) which appear not to be optimal. I will try converting >> some ports to bsd.xorg.mk magic and see what changes. > > I had a closer look at the process, and read some documentation as well. > > fontconfig is *required* to be run after installation to update fontconfig > system fonts cache. Some ports which run it explicitly don't pass option -s > (while bsd.xorg.mk does), thus updating also user's (in that case, root's!) > cache, which is not what we want. fc-cache @exec line in bsd.xorg.mk is > thus correct and *required*. It is only incorrect for the INSTALL_AS_USER case. In that case the FONTROOTDIR should be set to $PREFIX/.fontconfig and -s should be omitted. The not so pretty case is where she sets PREFIX to be something else then $HOME. Also, when -s is omitted, fc-cache will still try the system directories (and fail) and generate some mild noise if -v is also set. > I'm not sure about @unexec line, though. It doesn't remove the font from > the cache, so the only reason for its existence I can think of is if a port > overwrites a font installed by another port, and on deinstallation it restores > it. But this sounds like something which should not happen by design. So the unexec is executed before the font is removed? The unexec makes sense if executed after the .ttf is removed. The cache should be updated then and if a directory tree is used by multiple ports this should effectively remove only the uninstalled font from the cache, while preserving the other fonts. So the unexec should be there for this case: ./TTF/myport.ttf ./TTF/otherport/otherport.ttf > melflynn: ideas on why that line could be there? Meanwhile, I'll see if I can > ask to the author of that code. If it's useless, it should be removed, as it > also slows down a bit the port deinstallation. > A @unexec line should also be added by bsd.xorg.mk to remove > font.cache-1 files. According to melflynn, they're backup files created by > (old?) fc-cache, so let's do some garbage cleaning. Note that the only machine I found it on hasn't been updated since 7.2. They may be the old format. fc-cache man page only references fonts.cache-2 which are font name to file mappings. So it's likely that fonts.cache-1 used to be the same with different format. > mkfontscale and mkfontdir are *required* to update X fonts cache (i.e., > font.scale and font.dir files). We could package font.* files, but this would > break horribly if we end up installing two ports in the same directory. So, > since we already have to put fc-cache in post installation scripts, there's no > reason in not adding those too. Plus, if we want to package those files, we > need to keep them in sync with the fonts on every update, which is sub- > optimal. Both @exec and @unexec lines are *required* here, still for the "n > ports, 1 directory" reason above. > >>>> (do we still need that FontPath thing?, if no then the >>>> pkg-message asking people to fill it should be dropped) >>> >>> I think we do, but will try and report. >> >> I'm currently running KDE with stock FontPath's, and I can use my port- >> installed fonts. Seems like fontconfig takes care of this. Thus, there's no >> pkg-message in my port. >> I wonder, though, if there's still software not using fontconfig: I guess >> that, in that case, FontPath might be required. > > Apparently there is some, There are a handful of few ports that OPTIONally have fontconfig support: databases/phpmyadmin graphics/evas-core graphics/ImageMagick graphics/gd multimedia/mencoder print/ghostscript9 print/ghostscript8 With the exception of evas-core, these are all applications that are not primarily X applications. As for mencoder, it's also doubtful to turn it on/off. Makes more sense to me to tie it to subtitle support as it's confusing for a user to install a better font for subtitles and mencoder not picking up on it, especially since the default is off. so the pkg-message is still required (without the > line about loading FreeType). I'd like to fill it via bsd.xorg.mk, but that > wouldn't let maintainers write their custom pkg-message. Maybe we could > make it conditional, i.e., if maintainer didn't set any pkg-message, write it > automatically. You could define a variable that a maintainer can use in pkg-message. Might be tricky with \n. Documenting it and providing default text is the better solution in my opinion. Especially if you fix up existing ports to use the standard text, so that if a maintainer copies another port he's using the correct text. > About the packaging issue: I know I've talked about @exec's and > @unexec's above, but I think we can convert them to standard post-* > scripts. Can't we? This would conflict with maintainers custom scripts, of > course, just like pkg-message, but the solution might be the same. I'm not sure 8 lines is enough to motivate a script, but it would at least resolve any ordering/timing issues if they exist now. -- Mel From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 14:15:29 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E22EA106566C; Tue, 28 Feb 2012 14:15:29 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 408748FC0A; Tue, 28 Feb 2012 14:15:29 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2774189bkc.13 for ; Tue, 28 Feb 2012 06:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=u/XjMY70IkeBpDhvC86Q3aNUSq5iQAaRxC213Snh01E=; b=H1zS8qemv0XHZgLfn++SfWqxxDi7ypVLr+NAO4jZVo56mQCeTCtvlFYqbHj14EVTXo pxYoF9ZJ+HP10+S8Q2HVCczdjgKvE0tYaNvN2USbXC6pWc9euJW//nckk+5u1xDNa1Dw Qi26xnf5bPnYHL2CuhvYuSHjrOcw+/OR/UHmk= Received: by 10.204.157.148 with SMTP id b20mr7753607bkx.89.1330438528319; Tue, 28 Feb 2012 06:15:28 -0800 (PST) Received: from woodstock.peanuts (wifinat-16.polito.it. [130.192.232.16]) by mx.google.com with ESMTPS id x11sm31533133bkd.2.2012.02.28.06.15.26 (version=SSLv3 cipher=OTHER); Tue, 28 Feb 2012 06:15:27 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: Mel Flynn Date: Tue, 28 Feb 2012 15:15:23 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201202281314.13503.avilla@freebsd.org> <4F4CDD40.1030906@acsalaska.net> In-Reply-To: <4F4CDD40.1030906@acsalaska.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart29567000.lC0tlcLfLe"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202281515.26594.avilla@freebsd.org> Cc: freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 14:15:30 -0000 --nextPart29567000.lC0tlcLfLe Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tuesday 28 February 2012 14:57:20 Mel Flynn wrote: > So the unexec is executed before the font is removed? The unexec=20 makes > sense if executed after the .ttf is removed. I think it's executed *after* fonts removal. > The cache should be updated > then and if a directory tree is used by multiple ports this should > effectively remove only the uninstalled font from the cache, while > preserving the other fonts. So the unexec should be there for this case: >=20 > ./TTF/myport.ttf > ./TTF/otherport/otherport.ttf I've tried running `fc-cache -sv` on an empty font directory, but the cache= =20 wasn't updated (grepping /var/db/fontconfig for the file name returned a=20 result, and running `fc-cache -v` with no directories removed that matching= =20 cache file), so I fail to see any effect of this invocation. About all other things, I'm writing a patch for bsd.xorg.mk which I'll show= =20 you later. =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla The great nations have always acted like gangsters and the small nations like prostitutes. -- Stanley Kubrick --nextPart29567000.lC0tlcLfLe Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9M4X4ACgkQ3xiC6kQ1CovUAwQAifyKs97C6DlS8jLcLhCImi2A viOodESpoO4D9Fpxyk/K9nn50hu/kEItazcyhiLS3vjBTW8YRooaxi0brX+i0ydM 3GgTTzRVdMOc/7i5C0qngN5xpbo7urkzM5vPtMZEW1lHHkSGFzXGZkjJ9kT5scju GaF9FgQHO3znW0QUnuw= =L7vj -----END PGP SIGNATURE----- --nextPart29567000.lC0tlcLfLe-- From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 14:48:23 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 468F31065674; Tue, 28 Feb 2012 14:48:23 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8DF2F8FC13; Tue, 28 Feb 2012 14:48:22 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2822032bkc.13 for ; Tue, 28 Feb 2012 06:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=DUJJdqISZW3qJDuEgah2WqdrfnpNerAT8rzpVYdBWGc=; b=x9eJqmNUXWbotqqQtHhL6M6N8/GnLpeXl9uR5ztpjVMp7vstv/zjSQY65Z9TaE+82W A9rlsu61KlS0nE6FbVp+MVCdyDOTRSlsOaORIyJcwL9XgjOSkekAcN4o9RCGGZL6I9JA IeY/LC9hV7byj3rohm4Wr15YiaCDMOLJkUaIk= Received: by 10.204.155.69 with SMTP id r5mr7921129bkw.118.1330440501260; Tue, 28 Feb 2012 06:48:21 -0800 (PST) Received: from woodstock.peanuts (wifinat-16.polito.it. [130.192.232.16]) by mx.google.com with ESMTPS id ut6sm31672576bkb.14.2012.02.28.06.48.20 (version=SSLv3 cipher=OTHER); Tue, 28 Feb 2012 06:48:20 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: Mel Flynn Date: Tue, 28 Feb 2012 15:48:17 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201202281314.13503.avilla@freebsd.org> <4F4CDD40.1030906@acsalaska.net> In-Reply-To: <4F4CDD40.1030906@acsalaska.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart60476268.YYrJfZ87C5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202281548.20159.avilla@freebsd.org> Cc: freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 14:48:23 -0000 --nextPart60476268.YYrJfZ87C5 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tuesday 28 February 2012 14:57:20 Mel Flynn wrote: > It is only incorrect for the INSTALL_AS_USER case. In that case the > FONTROOTDIR should be set to $PREFIX/.fontconfig and -s should be > omitted. The not so pretty case is where she sets PREFIX to be something > else then $HOME. Actually, FONTROOTDIR could still be ${PREFIX}/lib/X11/fonts, as it's=20 where fonts are installed, but I'm thinking about setting it at=20 ${HOME}/.fonts. What do you think? =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla C'est magnifique, mais ce n'est pas la guerre! --nextPart60476268.YYrJfZ87C5 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9M6TQACgkQ3xiC6kQ1Cotw+AQAsKzuxiww2+qEY2sLIkzgypxI fZ7mQidYa8UH0jzPTDFkhm+FTZU/VMe78e9dxE8XJAJ7eeaO+42mK/2EhDjEgihq ERDAA2FVCpel5qCmFXfj02vQNbXTVs2uA5wieyOhIHPXmL+cHqSRcLqVW48fIMXi +AJvIs5iaV5/N9RnTVE= =A5V1 -----END PGP SIGNATURE----- --nextPart60476268.YYrJfZ87C5-- From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 14:53:53 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1485E106564A; Tue, 28 Feb 2012 14:53:53 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 516138FC12; Tue, 28 Feb 2012 14:53:52 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2829627bkc.13 for ; Tue, 28 Feb 2012 06:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=NJ9c+OWyeCzZq+0MY8ThUVnAIqkzdwu7cFWicZJi+DE=; b=kZtN3izhQdwumw5+/nCToOlhzrCDSl2deIYsgQpNRscPu5EFu7cT4nwWCRlBl007ZM EsZ7Gcgdh5yGkTXTfsE0QkHYtQ9OtfZ20TebfPBl/+QlsTlZzwx21a3t53xt1oHW0qaL oghSwGDLOA8evxRDxs4diEuyBrmjM97IRWl3o= Received: by 10.205.133.208 with SMTP id hz16mr2766574bkc.56.1330440831334; Tue, 28 Feb 2012 06:53:51 -0800 (PST) Received: from woodstock.peanuts (wifinat-16.polito.it. [130.192.232.16]) by mx.google.com with ESMTPS id e13sm31713026bku.12.2012.02.28.06.53.50 (version=SSLv3 cipher=OTHER); Tue, 28 Feb 2012 06:53:50 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: Mel Flynn Date: Tue, 28 Feb 2012 15:53:49 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <4F4CDD40.1030906@acsalaska.net> <201202281548.20159.avilla@freebsd.org> In-Reply-To: <201202281548.20159.avilla@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2127004.KurrtVaCpa"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202281553.50255.avilla@freebsd.org> Cc: freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 14:53:53 -0000 --nextPart2127004.KurrtVaCpa Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tuesday 28 February 2012 15:48:17 Alberto Villa wrote: > Actually, FONTROOTDIR could still be ${PREFIX}/lib/X11/fonts, as it's > where fonts are installed, but I'm thinking about setting it at > ${HOME}/.fonts. What do you think? Wait, no, this sounds like a bad idea. So... ${PREFIX}/.fonts or=20 ${PREFIX}/lib/X11/fonts? =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla Do I like getting drunk? Depends on who's doing the drinking. -- Amy Gorin --nextPart2127004.KurrtVaCpa Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9M6n4ACgkQ3xiC6kQ1Cos22wQAh+maGa1/rjCJEeqZjVEvwHzs poQMb1hXf1JsebsQ52MXy4FChlNb8NMj363EyePtCADTVFB15N3uE2cMpz9MgS5w gt9WIU6eoavHUUY/atdXw6YRPOm6cfYijr61uNd2q2j87sASdzT2mE1j6fQFhkg1 2dEQPL62Bc5neZNm1qg= =AFLA -----END PGP SIGNATURE----- --nextPart2127004.KurrtVaCpa-- From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 15:06:38 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8371A106564A; Tue, 28 Feb 2012 15:06:38 +0000 (UTC) (envelope-from rflynn@acsalaska.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 13D068FC0A; Tue, 28 Feb 2012 15:06:38 +0000 (UTC) Received: from [127.0.0.1] (squeeze.lan.rachie.is-a-geek.net [192.168.2.30]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 3087D7E854; Tue, 28 Feb 2012 06:06:35 -0900 (AKST) Message-ID: <4F4CED84.5060407@acsalaska.net> Date: Tue, 28 Feb 2012 16:06:44 +0100 From: Mel Flynn User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Alberto Villa References: <20120120065141.GM4729@azathoth.lan> <201202281314.13503.avilla@freebsd.org> <4F4CDD40.1030906@acsalaska.net> <201202281515.26594.avilla@freebsd.org> In-Reply-To: <201202281515.26594.avilla@freebsd.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 15:06:38 -0000 On 2/28/2012 15:15, Alberto Villa wrote: > On Tuesday 28 February 2012 14:57:20 Mel Flynn wrote: >> So the unexec is executed before the font is removed? The unexec > makes >> sense if executed after the .ttf is removed. > > I think it's executed *after* fonts removal. > >> The cache should be updated >> then and if a directory tree is used by multiple ports this should >> effectively remove only the uninstalled font from the cache, while >> preserving the other fonts. So the unexec should be there for this case: >> >> ./TTF/myport.ttf >> ./TTF/otherport/otherport.ttf > > I've tried running `fc-cache -sv` on an empty font directory, but the cache > wasn't updated (grepping /var/db/fontconfig for the file name returned a > result, and running `fc-cache -v` with no directories removed that matching > cache file), so I fail to see any effect of this invocation. But what does fc-list give you? There's more then one way to delete something, one of them being marking "as deleted". Bit swamped atm, but I can do some testing in a few hours, including what the default directory is for "fonts in $HOME". -- Mel From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 15:33:38 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BC0C1065673; Tue, 28 Feb 2012 15:33:38 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 87E0B8FC17; Tue, 28 Feb 2012 15:33:37 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2884100bkc.13 for ; Tue, 28 Feb 2012 07:33:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=HxhJCxDh/KSsvc/vzU0Mz4XPjyJ9R/TboWPAnaS85y8=; b=qhIq5aXXaMkXf6upVQ/05vegWtJjkRXTQULywer50TmMoz54bmj3Q0DnPWKt2Hg1NS nliLCrJt5BtBLkG9+x3hF6xhypimz/1tNkil6DPd6Bzw0isM8wuriPDvA3/04AzJiVAW 8iBxeFnAkpvqlYi7eXulCEFTvUAe07+X7hhQs= Received: by 10.204.173.11 with SMTP id n11mr7857869bkz.120.1330443216441; Tue, 28 Feb 2012 07:33:36 -0800 (PST) Received: from woodstock.peanuts ([95.236.70.210]) by mx.google.com with ESMTPS id o7sm31925048bkw.16.2012.02.28.07.33.35 (version=SSLv3 cipher=OTHER); Tue, 28 Feb 2012 07:33:35 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: Mel Flynn Date: Tue, 28 Feb 2012 16:33:30 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201202281515.26594.avilla@freebsd.org> <4F4CED84.5060407@acsalaska.net> In-Reply-To: <4F4CED84.5060407@acsalaska.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3352895.nsWXpoWAXg"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202281633.34241.avilla@freebsd.org> Cc: freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 15:33:38 -0000 --nextPart3352895.nsWXpoWAXg Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tuesday 28 February 2012 16:06:44 Mel Flynn wrote: > But what does fc-list give you? It's not in that list, but I thought it detected missing files. > There's more then one way to delete > something, one of them being marking "as deleted". Bit swamped atm,=20 but > I can do some testing in a few hours, Yes, please. :) > including what the default > directory is for "fonts in $HOME". According to /usr/local/etc/fonts/fonts.conf it's ~/.fonts/. =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla Journalism is literature in a hurry. -- Matthew Arnold --nextPart3352895.nsWXpoWAXg Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9M884ACgkQ3xiC6kQ1CovY/gQAmAgrH+6odJ++B8MaTZpsjeRs XRtl3jVTWg6d57BvMUnBNiR1GaL1mdb1VKRUAzkhMlrHyCGu4mXtJgqiAaThKgoL bT+b/HMV/EO2UvFGALKRUofVzTwJUY3JkURLo6cHCSnOwhHo/mGGoADu2m5xDfFV cwzeQSZdd4tRCDII4HY= =gHIE -----END PGP SIGNATURE----- --nextPart3352895.nsWXpoWAXg-- From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 19:36:08 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBD5F1065672; Tue, 28 Feb 2012 19:36:08 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 125598FC15; Tue, 28 Feb 2012 19:36:07 +0000 (UTC) Received: by wgbdt10 with SMTP id dt10so2510088wgb.1 for ; Tue, 28 Feb 2012 11:36:07 -0800 (PST) Received-SPF: pass (google.com: domain of villa.alberto@gmail.com designates 10.180.83.70 as permitted sender) client-ip=10.180.83.70; Authentication-Results: mr.google.com; spf=pass (google.com: domain of villa.alberto@gmail.com designates 10.180.83.70 as permitted sender) smtp.mail=villa.alberto@gmail.com; dkim=pass header.i=villa.alberto@gmail.com Received: from mr.google.com ([10.180.83.70]) by 10.180.83.70 with SMTP id o6mr10575958wiy.19.1330457766995 (num_hops = 1); Tue, 28 Feb 2012 11:36:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=orIJcSibwyJPoa4U1mOcTP9jTSF+9s/BlU/pZIzZIgU=; b=auZeNtTodHdZUCR9ZVwLqiBl7MZyN4Tk9U8NEPeg8s62OvH0kzP6BU18eAd3jKH4Ij XZ/opN2a80nRWtX/XiMEn/PVfRwxWvEcJ9FUHEEChD9AuJj086eJNM4xK0E/jxdkjidf UB/3PX+pvLCxmW2oWrVOrVYOIFuPCzrPg5bvQ= Received: by 10.180.83.70 with SMTP id o6mr8411141wiy.19.1330457766906; Tue, 28 Feb 2012 11:36:06 -0800 (PST) Received: from woodstock.peanuts ([95.236.70.210]) by mx.google.com with ESMTPS id gd8sm30872590wib.2.2012.02.28.11.36.02 (version=SSLv3 cipher=OTHER); Tue, 28 Feb 2012 11:36:03 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: Mel Flynn Date: Tue, 28 Feb 2012 20:35:58 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201202281314.13503.avilla@freebsd.org> <4F4CDD40.1030906@acsalaska.net> In-Reply-To: <4F4CDD40.1030906@acsalaska.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1517027.BRhDlQhQL2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202282036.01497.avilla@freebsd.org> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 19:36:08 -0000 --nextPart1517027.BRhDlQhQL2 Content-Type: multipart/mixed; boundary="Boundary-01=_eySTPjUJFq9M2St" Content-Transfer-Encoding: 7bit --Boundary-01=_eySTPjUJFq9M2St Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 28 February 2012 14:57:20 Mel Flynn wrote: > It is only incorrect for the INSTALL_AS_USER case. In that case the > FONTROOTDIR should be set to $PREFIX/.fontconfig and -s should be > omitted. The not so pretty case is where she sets PREFIX to be something > else then $HOME. Also, when -s is omitted, fc-cache will still try the > system directories (and fail) and generate some mild noise if -v is also > set. bapt@ explicitly asked me to not care about INSTALL_AS_USER, so let's=20 drop the discussion on this. > You could define a variable that a maintainer can use in pkg-message. > Might be tricky with \n. Documenting it and providing default text is > the better solution in my opinion. Especially if you fix up existing > ports to use the standard text, so that if a maintainer copies another > port he's using the correct text. Pardon, can you rephrase? > I'm not sure 8 lines is enough to motivate a script, but it would at > least resolve any ordering/timing issues if they exist now. I has misunderstood this point. @ lines are not going away from plists with= =20 pkgng, only @(un)exec. Actually, more @ lines will appear thanks to=20 extensible YAML scripts (there will be keywords for font handling too - I=20 didn't include bapt@'s preview code in this patch just because it needs=20 some tweaking to work as it should), so this is another non-problem. Yay,=20 two solved! \o/ Now, attached you can find a patch that shows an updated procedure to=20 handle fonts installation. I moved *_DEPENDS and post-install lines out of= =20 XORG_CAT (and post-install is now in post-makefile section, checking for=20 already existing target - let maintainers define their own target, if they= =20 really want), as that is really X.Org specific stuff. Port variables are: =2D FONTDIR (I will probably set it to ${PORTNAME} by default - can be set = to a=20 list of directories, bsd.xorg.mk will handle it just fine); =2D FONTROOTDIR (defaults to ${PREFIX}/lib/X11/fonts, and shouldn't be=20 modified); =2D FONTROOTDIR_REL (relative version of the one above); =2D INSTALLS_TTF (set to "yes" to call fc-cache); =2D NEED_MKFONTFOO (set to "yes" to call mkfont* stuff - defaults to "yes" = if=20 INSTALLS_TTF is set). What triggers the inclusion of bsd.xorg.mk and the whole procedure are=20 INSTALLS_TTF or NEED_MKFONTFOO. We obviously need a better way to=20 do it: bapt@ suggests INSTALLS_FONTS=3D(ttf|whatever). I'll implement it in= =20 my next patch. On port installation, this is what happens: =3D=3D=3D> Updating font cache fc-cache -s /usr/local/lib/X11/fonts/oxygen-fonts mkfontscale /usr/local/lib/X11/fonts/oxygen-fonts mkfontdir /usr/local/lib/X11/fonts/oxygen-fonts And these are resulting scripts in package manifest: scripts: post-install: | fc-cache -s /usr/local/lib/X11/fonts/oxygen-fonts 2>/dev/null || true mkfontscale /usr/local/lib/X11/fonts/oxygen-fonts 2>/dev/null || true mkfontdir /usr/local/lib/X11/fonts/oxygen-fonts 2>/dev/null || true post-deinstall: | fc-cache -s /usr/local/lib/X11/fonts/oxygen-fonts 2>/dev/null || true /bin/rm /usr/local/lib/X11/fonts/oxygen-fonts/fonts.scale /bin/rm /usr/local/lib/X11/fonts/oxygen-fonts/fonts.dir if [ -n "`ls -A /usr/local/lib/X11/fonts/oxygen-fonts`" ]; then=20 mkfontscale /usr/local/lib/X11/fonts/oxygen-fonts 2>/dev/null || true;=20 mkfontdir /usr/local/lib/X11/fonts/oxygen-fonts 2>/dev/null || true; fi As you can see, I've not included any pkg-message handling code yet. Now if you could please review this first change... :) P.S.: I've also attached an example Makefile. And no, I've not tested any=20 existing port, yet. =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla At the source of every error which is blamed on the computer you will find at least two human errors, including the error of blaming it on the=20 computer. --Boundary-01=_eySTPjUJFq9M2St Content-Type: text/x-patch; charset="UTF-8"; name="fonts.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="fonts.diff" =2D-- bsd.port.mk 2012-02-28 18:25:03.450038885 +0100 +++ /usr/ports/Mk/bsd.port.mk 2012-02-28 18:26:28.859948464 +0100 @@ -1368,7 +1368,7 @@ .include "${PORTSDIR}/Mk/bsd.linux-apps.mk" .endif =20 =2D.if defined(USE_XORG) || defined(XORG_CAT) +.if defined(USE_XORG) || defined(XORG_CAT) || defined(INSTALLS_TTF) || def= ined(NEED_MKFONTFOO) .include "${PORTSDIR}/Mk/bsd.xorg.mk" .endif =20 @@ -1997,7 +1997,7 @@ .include "${PORTSDIR}/Mk/bsd.local.mk" .endif =20 =2D.if defined(USE_XORG) || defined(XORG_CAT) +.if defined(USE_XORG) || defined(XORG_CAT) || defined(INSTALLS_TTF) || def= ined(NEED_MKFONTFOO) .include "${PORTSDIR}/Mk/bsd.xorg.mk" .endif =20 =2D-- bsd.xorg.mk 2012-02-28 18:01:57.489933059 +0100 +++ /usr/ports/Mk/bsd.xorg.mk 2012-02-28 19:59:11.391468933 +0100 @@ -61,8 +61,8 @@ =20 . if ${XORG_CAT} =3D=3D "font" FONTDIR?=3D ${PORTNAME:C/.*-//g:S/type/Type/:S/ttf/TTF/:S/speedo/Speedo/} =2DCONFIGURE_ARGS+=3D --with-fontrootdir=3D${PREFIX}/lib/X11/fonts =2DCONFIGURE_ENV+=3D FONTROOTDIR=3D${PREFIX}/lib/X11/fonts +CONFIGURE_ARGS+=3D --with-fontrootdir=3D${FONTROOTDIR} +CONFIGURE_ENV+=3D FONTROOTDIR=3D${FONTROOTDIR} NEED_MKFONTFOO=3D yes =20 . if ${PORTNAME:M*type1*}x !=3D x @@ -81,40 +81,9 @@ . if ${PORTNAME:M*font-util*}x !=3D x USE_GNOME+=3D gnomehack NEED_MKFONTFOO=3D no =2D. elif ${INSTALLS_TTF} =3D=3D "yes" =2DUSE_GNOME+=3D pkgconfig =2DBUILD_DEPENDS+=3D ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDI= R}/x11-fonts/fontconfig =2DRUN_DEPENDS+=3D ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}= /x11-fonts/fontconfig =2D. else +. elif ${INSTALLS_TTF} !=3D "yes" BUILD_DEPENDS+=3D ${LOCALBASE}/bin/bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf . endif =2D =2D. if ${NEED_MKFONTFOO} =3D=3D "yes" =2DBUILD_DEPENDS+=3D ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfon= tdir \ =2D ${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale =2DRUN_DEPENDS+=3D ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontd= ir \ =2D ${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale =2D. endif =2D =2Dpost-install: =2D. if ${INSTALLS_TTF} =3D=3D "yes" =2D. for _fontdir in ${FONTDIR} =2D @${ECHO_CMD} "@exec fc-cache -s %D/lib/X11/fonts/${_fontdir} 2>/dev/nul= l || true" >> ${TMPPLIST} =2D @${ECHO_CMD} "@unexec fc-cache -s %D/lib/X11/fonts/${_fontdir} 2>/dev/n= ull || true" >> ${TMPPLIST} =2D @${ECHO_CMD} "@unexec rmdir %D/lib/X11/fonts/${_fontdir} 2>/dev/null ||= true" >> ${TMPPLIST} =2D. endfor =2D. endif =2D. for _fontdir in ${FONTDIR} =2D. if ${NEED_MKFONTFOO} =3D=3D "yes" =2D @${ECHO_CMD} "@exec mkfontscale %D/lib/X11/fonts/${_fontdir} 2>/dev/nul= l || true" >> ${TMPPLIST} =2D @${ECHO_CMD} "@unexec mkfontscale %D/lib/X11/fonts/${_fontdir} 2>/dev/n= ull || true" >> ${TMPPLIST} =2D @${ECHO_CMD} "@unexec if [ -e %D/lib/X11/fonts/${_fontdir}/fonts.scale = =2Da \"\`stat -f '%%z' %D/lib/X11/fonts/${_fontdir}/fonts.scale 2>/dev/null= \`\" =3D '2' ]; then rm %D/lib/X11/fonts/${_fontdir}/fonts.scale; fi" >> ${= TMPPLIST} =2D @${ECHO_CMD} "@exec mkfontdir %D/lib/X11/fonts/${_fontdir} 2>/dev/null = || true" >> ${TMPPLIST} =2D @${ECHO_CMD} "@unexec mkfontdir %D/lib/X11/fonts/${_fontdir} 2>/dev/nul= l || true" >> ${TMPPLIST} =2D @${ECHO_CMD} "@unexec if [ -e %D/lib/X11/fonts/${_fontdir}/fonts.dir -a= \"\`stat -f '%%z' %D/lib/X11/fonts/${_fontdir}/fonts.dir 2>/dev/null\`\" = =3D '2' ]; then rm %D/lib/X11/fonts/${_fontdir}/fonts.dir; fi" >> ${TMPPLIS= T} =2D. endif =2D @${ECHO_CMD} "@unexec rmdir %D/lib/X11/fonts/${_fontdir} 2>/dev/null ||= true" >> ${TMPPLIST} =2D. endfor . endif =20 . if ${XORG_CAT} =3D=3D "lib" @@ -139,6 +108,25 @@ =20 .endif =20 +.if defined(XORG_CAT) && ${XORG_CAT} =3D=3D "font" || defined(INSTALLS_TTF= ) && ${INSTALLS_TTF} =3D=3D "yes" || defined(NEED_MKFONTFOO) && ${NEED_MKFO= NTFOO} =3D=3D "yes" +FONTROOTDIR?=3D ${PREFIX}/lib/X11/fonts +FONTROOTDIR_REL?=3D ${FONTROOTDIR:S,^${PREFIX}/,,} +NEED_MKFONTFOO?=3D yes +.endif + +.if defined(INSTALLS_TTF) && ${INSTALLS_TTF} =3D=3D "yes" +USE_GNOME+=3D pkgconfig +BUILD_DEPENDS+=3D ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconf= ig +RUN_DEPENDS+=3D ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig +.endif + +.if defined(NEED_MKFONTFOO) && ${NEED_MKFONTFOO} =3D=3D "yes" +BUILD_DEPENDS+=3D ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontd= ir \ + ${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale +RUN_DEPENDS+=3D ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir= \ + ${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale +.endif + .endif =20 .if defined(_POSTMKINCLUDED) && !defined(Xorg_Post_Include) @@ -260,4 +248,25 @@ done .endif =20 +.if (defined(INSTALLS_TTF) && ${INSTALLS_TTF} =3D=3D "yes" || defined(NEED= _MKFONTFOO) && ${NEED_MKFONTFOO} =3D=3D "yes") && !target(post-install) +post-install: +. for _fontdir in ${FONTDIR} + @${ECHO_MSG} "=3D=3D=3D> Updating font cache" +. if defined(INSTALLS_TTF) && ${INSTALLS_TTF} =3D=3D "yes" + fc-cache -s ${FONTROOTDIR}/${_fontdir} + @${ECHO_CMD} "@exec fc-cache -s ${FONTROOTDIR}/${_fontdir} 2>/dev/null ||= ${TRUE}" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec fc-cache -s ${FONTROOTDIR}/${_fontdir} 2>/dev/null = || ${TRUE}" >> ${TMPPLIST} +. endif +. if defined(NEED_MKFONTFOO) && ${NEED_MKFONTFOO} =3D=3D "yes" +. for t in scale dir + mkfont${t} ${FONTROOTDIR}/${_fontdir} + @${ECHO_CMD} "@exec mkfont${t} ${FONTROOTDIR}/${_fontdir} 2>/dev/null || = ${TRUE}" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ${RM} ${FONTROOTDIR}/${_fontdir}/fonts.${t}" >> ${T= MPPLIST} +. endfor + @${ECHO_CMD} "@unexec if [ -n \"\`ls -A ${FONTROOTDIR}/${FONTDIR}\`\" ]; = then mkfontscale ${FONTROOTDIR}/${_fontdir} 2>/dev/null || ${TRUE}; mkfontd= ir ${FONTROOTDIR}/${_fontdir} 2>/dev/null || ${TRUE}; fi" >> ${TMPPLIST} +. endif + @${ECHO_CMD} "@unexec ${RMDIR} ${FONTROOTDIR}/${_fontdir} 2>/dev/null || = ${TRUE}" >> ${TMPPLIST} +. endfor +.endif + .endif --Boundary-01=_eySTPjUJFq9M2St-- --nextPart1517027.BRhDlQhQL2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9NLKEACgkQ3xiC6kQ1Cov96AP+NyXk10WduSbKOuIo9rjF+ZbW 93aT6diM+IZFVjmCLj87ahtyw6TkBl08RVpg9lMOfASNQ5VLWJenvU3bvgnnYz6p 0L3VXej2SwcmJ2tNqpz6JffZzZ6BoJMLOTl09FL/M5KEkDDauDR2WNT/zsodDCKj Uv2ES04Ihl6KMVy83DY= =Iz+v -----END PGP SIGNATURE----- --nextPart1517027.BRhDlQhQL2-- From owner-freebsd-desktop@FreeBSD.ORG Fri Mar 2 02:53:44 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDC3A106564A; Fri, 2 Mar 2012 02:53:44 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 237D98FC14; Fri, 2 Mar 2012 02:53:43 +0000 (UTC) Received: by eaaf13 with SMTP id f13so468191eaa.13 for ; Thu, 01 Mar 2012 18:53:43 -0800 (PST) Received-SPF: pass (google.com: domain of villa.alberto@gmail.com designates 10.14.95.208 as permitted sender) client-ip=10.14.95.208; Authentication-Results: mr.google.com; spf=pass (google.com: domain of villa.alberto@gmail.com designates 10.14.95.208 as permitted sender) smtp.mail=villa.alberto@gmail.com; dkim=pass header.i=villa.alberto@gmail.com Received: from mr.google.com ([10.14.95.208]) by 10.14.95.208 with SMTP id p56mr4534778eef.129.1330656823302 (num_hops = 1); Thu, 01 Mar 2012 18:53:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=+ljhpAzhdL1RLaIVXgo8QtPLQo/uKSRO2N+GLey04dc=; b=F7HgZ1LCo7tgmw9K41du598WO8Uv115le4T7fhqXgH7z9+DHMOsfOK310K7P2ElGKE oFlY6mlt5mhFbrnXekDfh9FokuAbA/spkvR1pm+5QEY67K45BTltdJnGRLuircke2AAx dmgNWY3QkcndN8iRlHD9YYHJdi6Kaa5IkUoUTBK5nwnudBSRH9GpKAagEYRnZ0IpRa7S pBGkbvnFFFo4l4JRCzaSBKrFO008sEiC+e6aYliGs9v4OcWdsIDG0pAEovWo6+oxa5OA Az3mrzpSgL21R2ab7bh+f9VwXCXEidK2TD8rE832hKemXvHNa65j6FlPCjDJaZS5OsKP mbgw== Received: by 10.14.95.208 with SMTP id p56mr3486907eef.129.1330656823207; Thu, 01 Mar 2012 18:53:43 -0800 (PST) Received: from woodstock.peanuts ([95.236.70.210]) by mx.google.com with ESMTPS id o11sm6357875eef.4.2012.03.01.18.53.41 (version=SSLv3 cipher=OTHER); Thu, 01 Mar 2012 18:53:42 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: Mel Flynn Date: Fri, 2 Mar 2012 03:53:37 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <4F4CDD40.1030906@acsalaska.net> <201202282036.01497.avilla@freebsd.org> In-Reply-To: <201202282036.01497.avilla@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3378916.aLdMlEjmVU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201203020353.40643.avilla@freebsd.org> Cc: freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 02:53:44 -0000 --nextPart3378916.aLdMlEjmVU Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tuesday 28 February 2012 20:35:58 Alberto Villa wrote: > We obviously need a better way to > do it: bapt@ suggests INSTALLS_FONTS=3D(ttf|whatever). I'll implement it= =20 in > my next patch. The patch is ready, but I'm still testing it on some ports. Luckily, it wil= l=20 not affect anything which doesn't set INSTALLS_FONTS=3Dyes, so I will be=20 able to push it to x11@ for review before having patches for every port. Currently I've set FONTDIR?=3D${PORTNAME:C/[-_]fonts?$//}, but I'm not=20 sure I should affect by default the installation directory (non-X.Org fonts= =20 get installed to /usr/local/share/fonts/${FONTDIR}, just for your=20 information). Do you think I should revert it to FONTDIR?=3D${PORTNAME}? By the way, it installs a default pkg-message for non-X.Org ports if none=20 was provided. I hope this won't be considered too hackish. :) =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla Buzzword, n.: The fly in the ointment of computer literacy. --nextPart3378916.aLdMlEjmVU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9QNjQACgkQ3xiC6kQ1CotplQQAwAS8hUF/3opY16Y2TvUkDjBu 3mKBNi1MXabTVq1SClCSObucLOZcLUO+7zCfPVDl2C33A2tWXg1WtAkNe6zdeh41 2fuLDBxUam+shpZPEmoHZiaW43XNsrWu+mb30QOuPd0wKHC1b7C8EKbhQ/qiwW2N hFV9QYNSKe1afFbYCCM= =/fq1 -----END PGP SIGNATURE----- --nextPart3378916.aLdMlEjmVU-- From owner-freebsd-desktop@FreeBSD.ORG Fri Mar 2 07:53:47 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0DDD106566C; Fri, 2 Mar 2012 07:53:47 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6E6F28FC19; Fri, 2 Mar 2012 07:53:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q227rldM002622; Fri, 2 Mar 2012 07:53:47 GMT (envelope-from bapt@freebsd.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q227rlSf002620; Fri, 2 Mar 2012 07:53:47 GMT (envelope-from bapt@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@freebsd.org using -f Date: Fri, 2 Mar 2012 08:53:43 +0100 From: Baptiste Daroussin To: Alberto Villa Message-ID: <20120302075343.GD50579@azathoth.lan> References: <20120120065141.GM4729@azathoth.lan> <4F4CDD40.1030906@acsalaska.net> <201202282036.01497.avilla@freebsd.org> <201203020353.40643.avilla@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML" Content-Disposition: inline In-Reply-To: <201203020353.40643.avilla@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Mel Flynn , freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 07:53:47 -0000 --RYJh/3oyKhIjGcML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 02, 2012 at 03:53:37AM +0100, Alberto Villa wrote: > On Tuesday 28 February 2012 20:35:58 Alberto Villa wrote: > > We obviously need a better way to > > do it: bapt@ suggests INSTALLS_FONTS=3D(ttf|whatever). I'll implement i= t=20 > in > > my next patch. >=20 > The patch is ready, but I'm still testing it on some ports. Luckily, it w= ill=20 > not affect anything which doesn't set INSTALLS_FONTS=3Dyes, so I will be= =20 > able to push it to x11@ for review before having patches for every port. >=20 > Currently I've set FONTDIR?=3D${PORTNAME:C/[-_]fonts?$//}, but I'm not=20 > sure I should affect by default the installation directory (non-X.Org fon= ts=20 > get installed to /usr/local/share/fonts/${FONTDIR}, just for your=20 > information). Do you think I should revert it to FONTDIR?=3D${PORTNAME}? >=20 > By the way, it installs a default pkg-message for non-X.Org ports if none= =20 > was provided. I hope this won't be considered too hackish. :) Thank you very very much, looks great, push it to x11@, just before pushing= it to x11@ can you just add some if defined(WITH_PKGNG) @fontdir and append the fontdir.yaml? (it is already supported in beta7 of pkgng) if you are not confident with that part I'll add it when it would be in the tree. regards, Bapt --RYJh/3oyKhIjGcML Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk9QfIcACgkQ8kTtMUmk6EzL8gCfefbmkjht/tlTm/TleqoGvKO9 9xkAn22mItHr8c+MVbUw55bDZls2uUod =f4N0 -----END PGP SIGNATURE----- --RYJh/3oyKhIjGcML-- From owner-freebsd-desktop@FreeBSD.ORG Fri Mar 2 08:05:50 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B92FE106564A; Fri, 2 Mar 2012 08:05:50 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id E0BE68FC14; Fri, 2 Mar 2012 08:05:49 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so560522wib.13 for ; Fri, 02 Mar 2012 00:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=JK6/pKM4F6u9EcAb2lyaRH0aWarZ5zhWhDogAFLiCeM=; b=z3k/ABDHeCgVtSmMlW9A7P1Vfcf7lvkfl5fnNDZXWJWqyky7g/trV+t0F74aOA9yV4 l7+qLP0a6VNAxxc4uijGzDGLZG2nvZp3VwH270r8VsTUpMzTimbZ0lIbKKKIUlnu2FB7 bQPWVDpDtK4sVgT3+wD8LonxQWEcivO3MKiB5qwvrRlUdy2DJ1QUzsD9R2VGhNNnlocr LezoSsdzSq1rGx8PqbEWTXSK7KFX7MnksXBbMC0ais0w93NqOIbMkivncyQOdpyxzNd4 X6bcV/KOpCIq2Fnbn506r+Zbh/F/IZET8ZBtxNtATg5u/qh8T6L0ypovLS18sLiMMBEM F5jw== Received: by 10.180.78.6 with SMTP id x6mr2103519wiw.18.1330675549013; Fri, 02 Mar 2012 00:05:49 -0800 (PST) Received: from woodstock.peanuts ([95.233.75.131]) by mx.google.com with ESMTPS id df3sm1771886wib.1.2012.03.02.00.05.47 (version=SSLv3 cipher=OTHER); Fri, 02 Mar 2012 00:05:48 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: Baptiste Daroussin Date: Fri, 2 Mar 2012 09:05:42 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201203020353.40643.avilla@freebsd.org> <20120302075343.GD50579@azathoth.lan> In-Reply-To: <20120302075343.GD50579@azathoth.lan> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3494274.CDRSACMR2a"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201203020905.46855.avilla@freebsd.org> Cc: Mel Flynn , freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 08:05:50 -0000 --nextPart3494274.CDRSACMR2a Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Friday 02 March 2012 08:53:43 Baptiste Daroussin wrote: > Thank you very very much, looks great, push it to x11@, just before=20 pushing > it to x11@ can you just add some if defined(WITH_PKGNG) @fontdir and > append the fontdir.yaml? (it is already supported in beta7 of pkgng) if > you are not confident with that part I'll add it when it would be in the > tree. I did it already. :) When will it be in ports tree? Currently the code is commented out. =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla QOTD: "What do you mean, you had the dog fixed? Just what made you think he was broken!" --nextPart3494274.CDRSACMR2a Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9Qf1oACgkQ3xiC6kQ1Cov1TQQAoP/Fg3WRCXgiDpIHE1xT32lK 3Z6kIiftkl/5IxxSjG8owU95wMwr5qi0MadzxPPZQ/8jNsDhXCEBLzTLIE9dRW33 O9RCxt2nM3Yoef1UmxVMbp/eQiVrL7R5arFmY5b9W5FJjUkuucqO52nZUnIAgyBl x6UgfR4FXNgKVoT/5AM= =gcJo -----END PGP SIGNATURE----- --nextPart3494274.CDRSACMR2a-- From owner-freebsd-desktop@FreeBSD.ORG Fri Mar 2 18:57:39 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEE31106564A; Fri, 2 Mar 2012 18:57:39 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id CDBDC8FC12; Fri, 2 Mar 2012 18:57:38 +0000 (UTC) Received: by werl4 with SMTP id l4so1615606wer.13 for ; Fri, 02 Mar 2012 10:57:38 -0800 (PST) Received-SPF: pass (google.com: domain of villa.alberto@gmail.com designates 10.216.135.106 as permitted sender) client-ip=10.216.135.106; Authentication-Results: mr.google.com; spf=pass (google.com: domain of villa.alberto@gmail.com designates 10.216.135.106 as permitted sender) smtp.mail=villa.alberto@gmail.com; dkim=pass header.i=villa.alberto@gmail.com Received: from mr.google.com ([10.216.135.106]) by 10.216.135.106 with SMTP id t84mr3509wei.74.1330714658090 (num_hops = 1); Fri, 02 Mar 2012 10:57:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=kvOzfbzNF18571yLUynuXd3fpqmV/EVdj4tURpHV/3Q=; b=u0qR52Y+tcTF12s6fBDl+IPKRTqAtgh0fvyFCTblt3DMaRMrzAxln5PbRPhmcoZ860 tZJjmostMMMpnT1N4fV2N7oSu9R/OqTFNfBx23+/xYg8uPighGMuHyev/XQFMOhGwgdk ECZJp3zDXeBE7Pa+elD/H6KUteXlugonaUze6hicQ/9ZEZ/Wce6+jRw+mpn039Zqu3Ox 1HDmE+e4vfpTjqCJHoaQ74jpMFpAYJPw8YRfTuHV8xMTkS0SCSBm8LUuXRyQf7ZyWAtm qaYt3O1/1H4nY6fnl8NyPt4aJJRwItniQ+BDAyi8uK+BfuscJwznMm94iB5bn36PPJPc ksOQ== Received: by 10.216.135.106 with SMTP id t84mr3452wei.74.1330714657809; Fri, 02 Mar 2012 10:57:37 -0800 (PST) Received: from woodstock.peanuts ([95.233.75.131]) by mx.google.com with ESMTPS id fw5sm5434082wib.0.2012.03.02.10.57.36 (version=SSLv3 cipher=OTHER); Fri, 02 Mar 2012 10:57:36 -0800 (PST) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: Baptiste Daroussin Date: Fri, 2 Mar 2012 19:57:32 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <20120120065141.GM4729@azathoth.lan> <201203020353.40643.avilla@freebsd.org> <20120302075343.GD50579@azathoth.lan> In-Reply-To: <20120302075343.GD50579@azathoth.lan> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2087447.ZKeGKdpGpn"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201203021957.35314.avilla@freebsd.org> Cc: Mel Flynn , freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 18:57:39 -0000 --nextPart2087447.ZKeGKdpGpn Content-Type: multipart/mixed; boundary="Boundary-01=_cgRUPVWfgmzzhIe" Content-Transfer-Encoding: 7bit --Boundary-01=_cgRUPVWfgmzzhIe Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 02 March 2012 08:53:43 Baptiste Daroussin wrote: > Thank you very very much, looks great, push it to x11@, just before=20 pushing > it to x11@ can you just add some if defined(WITH_PKGNG) @fontdir and > append the fontdir.yaml? (it is already supported in beta7 of pkgng) if > you are not confident with that part I'll add it when it would be in the > tree. So, here it is. I tried converting some existing ports, and they work. I tr= ied=20 building some ports without modification, and they don't change (mostly...= =20 well, they still work). So, it's time to see if it can be submitted to x11@= =20 for review and exp-run. Can you guys have a quick look at it? http://people.freebsd.org/~avilla/files/fonts/bsd.xorg.mk http://people.freebsd.org/~avilla/files/fonts/bsd.port.mk http://people.freebsd.org/~avilla/files/fonts/fontdir.yaml Here's the documentation i've written in bsd.xorg.mk. Read it and see if it= 's=20 easy enough. Your feedback is important to understand if we need=20 changes to the system: http://pastebin.kde.org/432458 Just for reference, the attached patch shows a couple of examples of what=20 most ports will go through. =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla It seems to make an auto driver mad if he misses you. --Boundary-01=_cgRUPVWfgmzzhIe Content-Type: text/x-patch; charset="UTF-8"; name="fonts.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="fonts.diff" Index: paratype/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/pcvs/ports/x11-fonts/paratype/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile =2D-- paratype/Makefile 28 Feb 2012 18:08:34 -0000 1.6 +++ paratype/Makefile 2 Mar 2012 18:56:06 -0000 @@ -7,10 +7,9 @@ =20 PORTNAME=3D paratype PORTVERSION=3D 2.004 =2DPORTREVISION=3D 3 +PORTREVISION=3D 4 CATEGORIES=3D x11-fonts MASTER_SITES=3D http://paratype.0xdc.ru/ =2DMASTER_SITE_SUBDIR=3D #prevent bsd.xorg.mk from setting a default subdir= ectory DISTFILES=3D PTSansOFL-2.004.zip PTSerifOFL-1.000.zip PTMonoOFL-1.002.zip =20 MAINTAINER=3D littlesavage@rambler.ru @@ -21,27 +20,13 @@ LICENSE_FILE=3D ${WRKSRC}/PTSansPTSerifOFL.txt LICENSE_PERMS=3D auto-accept =20 =2DINSTALLS_TTF=3D yes +INSTALLS_FONTS=3D yes +FONTDIR=3D ParaType NO_BUILD=3D yes NO_WRKSUBDIR=3D yes =2DUSE_TGZ=3D yes USE_ZIP=3D yes =2DXORG_CAT=3D font =2D =2DFONTDIR=3D ParaType =2DFONTROOTDIR=3D ${PREFIX}/lib/X11/fonts =2DPLIST_SUB=3D FONTDIR=3D"${FONTROOTDIR:S/${PREFIX}\///}/${FONTDIR}" =2DSUB_FILES=3D pkg-message =2DSUB_LIST=3D FONTDIR=3D"${FONTROOTDIR:S/${PREFIX}\///}/${FONTDIR}" =2D =2Ddo-configure: =2D @${DO_NADA} =20 do-install: =2D @${MKDIR} ${FONTROOTDIR}/${FONTDIR} @${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTROOTDIR}/${FONTDIR}/ =2D @${ECHO_MSG} =2D @${CAT} ${PKGMESSAGE} =2D @${ECHO_MSG} =20 .include Index: ubuntu-font/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/pcvs/ports/x11-fonts/ubuntu-font/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile =2D-- ubuntu-font/Makefile 21 Jan 2012 17:40:13 -0000 1.4 +++ ubuntu-font/Makefile 2 Mar 2012 18:56:06 -0000 @@ -7,7 +7,7 @@ =20 PORTNAME=3D ubuntu-font PORTVERSION=3D 0.80 =2DPORTREVISION=3D 1 +PORTREVISION=3D 2 CATEGORIES=3D x11-fonts MASTER_SITES=3D http://font.ubuntu.com/download/ =20 @@ -21,16 +21,10 @@ LICENSE_NAME=3D Ubuntu Font License (UFL) LICENSE_PERMS=3D auto-accept =20 =2DBUILD_DEPENDS=3D fc-cache:${PORTSDIR}/x11-fonts/fontconfig =2DRUN_DEPENDS:=3D ${BUILD_DEPENDS} =2D +INSTALLS_FONTS=3D yes USE_ZIP=3D yes NO_BUILD=3D yes =20 =2DPLIST_SUB=3D FONTSDIR=3D"${FONTSDIR:S|${PREFIX}/||}" =2DFONTSDIR=3D ${PREFIX}/lib/X11/fonts/${PORTNAME} =2DSUB_FILES=3D pkg-message =2DSUB_LIST=3D FONTSDIR=3D${FONTSDIR} WRKSRC=3D ${WRKDIR}/${DISTNAME} =20 do-install: @@ -38,12 +32,6 @@ ${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} *.txt ${DOCSDIR} .endif =2D ${MKDIR} ${FONTSDIR} =2D cd ${WRKSRC} && ${INSTALL_DATA} *.ttf ${FONTSDIR} =2D =2Dpost-install: =2D @${ECHO_MSG} "=3D=3D=3D> Running fc-cache" =2D -${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR} =2D @${CAT} ${PKGMESSAGE} + cd ${WRKSRC} && ${INSTALL_DATA} *.ttf ${FONTROOTDIR}/${FONTDIR} =20 .include --Boundary-01=_cgRUPVWfgmzzhIe-- --nextPart2087447.ZKeGKdpGpn Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk9RGB8ACgkQ3xiC6kQ1CotiYQP8DK+Py40iG1EmYv+dYReSZ4DB iyUSZBMqlqGlCGeM0XjrB7JjwqchAN9Fv4Ko6/tX8uyf6MYyU7TziLxicDKlutqR cdhDI45dYUnSY8ZMAKPlA21pGLXGY+Azlj40syRJ9CuETXa12VKPMtVYRMWCUtoN npKa849JdD7tdMwIK48= =yYt/ -----END PGP SIGNATURE----- --nextPart2087447.ZKeGKdpGpn-- From owner-freebsd-desktop@FreeBSD.ORG Fri Mar 2 21:41:04 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1EEDE106564A; Fri, 2 Mar 2012 21:41:04 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DC0278FC22; Fri, 2 Mar 2012 21:41:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q22Lf3bq001335; Fri, 2 Mar 2012 21:41:03 GMT (envelope-from bapt@freebsd.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q22Lf3aR001302; Fri, 2 Mar 2012 21:41:03 GMT (envelope-from bapt@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@freebsd.org using -f Date: Fri, 2 Mar 2012 22:40:59 +0100 From: Baptiste Daroussin To: Alberto Villa Message-ID: <20120302214059.GG50579@azathoth.lan> References: <20120120065141.GM4729@azathoth.lan> <201203020353.40643.avilla@freebsd.org> <20120302075343.GD50579@azathoth.lan> <201203021957.35314.avilla@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kjpMrWxdCilgNbo1" Content-Disposition: inline In-Reply-To: <201203021957.35314.avilla@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Mel Flynn , freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 21:41:04 -0000 --kjpMrWxdCilgNbo1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 02, 2012 at 07:57:32PM +0100, Alberto Villa wrote: > On Friday 02 March 2012 08:53:43 Baptiste Daroussin wrote: > > Thank you very very much, looks great, push it to x11@, just before=20 > pushing > > it to x11@ can you just add some if defined(WITH_PKGNG) @fontdir and > > append the fontdir.yaml? (it is already supported in beta7 of pkgng) if > > you are not confident with that part I'll add it when it would be in the > > tree. >=20 > So, here it is. I tried converting some existing ports, and they work. I = tried=20 > building some ports without modification, and they don't change (mostly..= =2E=20 > well, they still work). So, it's time to see if it can be submitted to x1= 1@=20 > for review and exp-run. Can you guys have a quick look at it? >=20 > http://people.freebsd.org/~avilla/files/fonts/bsd.xorg.mk > http://people.freebsd.org/~avilla/files/fonts/bsd.port.mk > http://people.freebsd.org/~avilla/files/fonts/fontdir.yaml >=20 > Here's the documentation i've written in bsd.xorg.mk. Read it and see if = it's=20 > easy enough. Your feedback is important to understand if we need=20 > changes to the system: http://pastebin.kde.org/432458 >=20 > Just for reference, the attached patch shows a couple of examples of what= =20 > most ports will go through. > --=20 > Alberto Villa, FreeBSD committer > http://people.FreeBSD.org/~avilla >=20 Looks perfect to me, just send the PR (if x11@ guys are ok) regards, Bapt --kjpMrWxdCilgNbo1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk9RPmsACgkQ8kTtMUmk6ExM2gCgjS9nUNGZydzFkfqRAqcc6Htl FGYAn3AsfJeMO+37/wTdTfhi1PDVqdYN =Yhrr -----END PGP SIGNATURE----- --kjpMrWxdCilgNbo1--