Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO]New freetype subpixel font rendering for lcd monitors
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 14, 15, 16 ... 28, 29, 30  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Sun Jan 13, 2008 1:12 am    Post subject: Reply with quote

Here you go:
https://boniek.homelinux.org/svn/repos/font-overlay/trunk/

It's as simple as you can get - I will try to update stuff as new versions become available. It's on my private machine so don't expect 100% uptime (if any of you can provide stable and fast hosting it would be much appreciated).

Here's paludis repository definition:
Code:
location = ${ROOT}/var/paludis/repositories/fonts/
sync = svn+https://boniek.homelinux.org/svn/repos/font-overlay/trunk/
names_cache = ${location}/.cache/names
cache = ${ROOT}/var/empty
distdir = ${ROOT}/var/tmp/distfiles
write_cache = ${ROOT}/var/cache/paludis/metadata
format = ebuild
master_repository = gentoo

_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
aronparsons
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2004
Posts: 117
Location: Virginia

PostPosted: Sun Jan 13, 2008 2:48 am    Post subject: Reply with quote

boniek wrote:
Here you go:
https://boniek.homelinux.org/svn/repos/font-overlay/trunk/

It's as simple as you can get - I will try to update stuff as new versions become available. It's on my private machine so don't expect 100% uptime (if any of you can provide stable and fast hosting it would be much appreciated).

Here's paludis repository definition:
Code:
location = ${ROOT}/var/paludis/repositories/fonts/
sync = svn+https://boniek.homelinux.org/svn/repos/font-overlay/trunk/
names_cache = ${location}/.cache/names
cache = ${ROOT}/var/empty
distdir = ${ROOT}/var/tmp/distfiles
write_cache = ${ROOT}/var/cache/paludis/metadata
format = ebuild
master_repository = gentoo


Thanks! I try to avoid overlays just because they pull in so many packages and sometimes the overlay ebuilds replace portage ebuilds that I don't them to (which really should be resolved with overlay priorities). A small, single-purpose overlay like this is the way to do it.

Also, the ebuilds are missing their manifests (not a problem to create them locally though).

Here's a layman definition for a local repository list:
Code:
<layman>
<overlay
      type = "svn"
      src  = "https://boniek.homelinux.org/svn/repos/font-overlay/trunk/"
      name = "font-overlay"
      contact = "???">

        <description>Font Overlay</description>
</overlay>
</layman>
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 870
Location: Mount Vernon, NY

PostPosted: Sun Jan 13, 2008 3:01 am    Post subject: Reply with quote

Boniek, you need to manifest the ebuilds in your overlay!!!!
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Jan 13, 2008 3:31 am    Post subject: Reply with quote

billydv wrote:
Boniek, you need to manifest the ebuilds in your overlay!!!!

Just digest them yourself. ;)

Code:
ebuild <insert ebuild file name here> digest
Back to top
View user's profile Send private message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Sun Jan 13, 2008 3:47 am    Post subject: Reply with quote

billydv wrote:
Boniek, you need to manifest the ebuilds in your overlay!!!!

Oops... fixed.
_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1287
Location: Netherlands

PostPosted: Sun Jan 13, 2008 10:16 am    Post subject: Reply with quote

Many many thanks for your efforts boniek!!! This is simply brillant :-D

Hugs
swimmer
Back to top
View user's profile Send private message
bosele
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2005
Posts: 90

PostPosted: Mon Jan 14, 2008 12:00 am    Post subject: Reply with quote

thank you!

and please don't take this the wrong way but..
any chance of an ebuild for a patched cairo 1.5.*? [/glep]
Back to top
View user's profile Send private message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Mon Jan 14, 2008 2:03 am    Post subject: Reply with quote

bosele wrote:
thank you!

and please don't take this the wrong way but..
any chance of an ebuild for a patched cairo 1.5.*? [/glep]

I will try to look into it.
_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
StifflerStealth
l33t
l33t


Joined: 03 Jul 2002
Posts: 955

PostPosted: Mon Jan 14, 2008 3:49 am    Post subject: Reply with quote

They have the 1.5 patch with the modifications made by Ubuntu as mentioned on the previous page how it adds more options. :)

http://bugs.freedesktop.org/show_bug.cgi?id=10301

Cool.
_________________
Nothing to read in this sig. Move along.
Back to top
View user's profile Send private message
bosele
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2005
Posts: 90

PostPosted: Mon Jan 14, 2008 12:12 pm    Post subject: Reply with quote

great, thanks again!
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Tue Jan 15, 2008 5:06 am    Post subject: Reply with quote

@boniek: Thanks again for taking the time to set this up. Since the actual guide is no longer available, would it be possible to post the text of the guide here in this thread? (assuming that you have a copy of the guide on your own machine) Or, since the thread has become lengthy with earlier posts out of date, perhaps just a summary of the basic steps?

I pulled a copy of the cairo and libXft ebuilds from your svn and have rebuilt both using the newspr USE flag. I ran revdep-rebuild afterwards, just in case, but everything was consistent. Do I need to manually re-emerge anything else?

Edit: Apparently not. Everything looks great now. :D
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 870
Location: Mount Vernon, NY

PostPosted: Thu Jan 17, 2008 4:03 pm    Post subject: Reply with quote

Boniek, Cairo has been updated in the official tree.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
pijalu
Guru
Guru


Joined: 04 Oct 2004
Posts: 365

PostPosted: Thu Jan 17, 2008 6:54 pm    Post subject: Reply with quote

billydv wrote:
Boniek, Cairo has been updated in the official tree.

copy ebuild and patch with new version and you should be set :-)
Back to top
View user's profile Send private message
bosele
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2005
Posts: 90

PostPosted: Fri Jan 18, 2008 12:22 pm    Post subject: Reply with quote

pijalu: would you mind sharing that ebuild which patches the new version? I am apparently completely inept at changing anything but typo's in ebuilds.
Back to top
View user's profile Send private message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Fri Jan 18, 2008 5:46 pm    Post subject: Reply with quote

It's up-to-date now. Unfortunately I won't be able to do 0day updates. I can only spend time working on overlay over the weekends (job, life etc :))
If you are using paludis (it may be possible for portage as well) I recommend to mask cairo from gentoo repository:
Code:
echo "x11-libs/cairo::gentoo" >> /etc/paludis/package_mask

That way you will only use cairo from overlay.
_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Jan 18, 2008 10:56 pm    Post subject: Reply with quote

boniek, should use elog instead of einfo, in pkg_postinst() :wink:
Back to top
View user's profile Send private message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Sat Jan 19, 2008 9:49 am    Post subject: Reply with quote

Thanks for tip Paul. Changed as per suggestion.
Cairo 1.5.x now in overlay (I have stolen the patch from this thread - my thanks goes to estar).
_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Sat Jan 19, 2008 4:04 pm    Post subject: Reply with quote

boniek wrote:
Thanks for tip Paul. Changed as per suggestion.
Cairo 1.5.x now in overlay (I have stolen the patch from this thread - my thanks goes to estar).


Just tried to grab that and it fails to patch cleanly. Ebuild unpack fails.

Code:

 * Failed Patch: cairo-1.5.2-newspr.patch.bz2 !
 *  ( /var/tmp/portage/x11-libs/cairo-1.5.6/temp/381.patch )
Back to top
View user's profile Send private message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Sat Jan 19, 2008 4:17 pm    Post subject: Reply with quote

That's strange. It works fine for me. Both - in Portage and in Paludis.
_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Sat Jan 19, 2008 4:28 pm    Post subject: Reply with quote

boniek wrote:
That's strange. It works fine for me. Both - in Portage and in Paludis.


Code:

PATCH COMMAND:   patch -p1 -g0 -E --no-backup-if-mismatch < /var/tmp/portage/x11-libs/cairo-1.5.6/temp/13674.patch

========================================
patching file src/cairo-ft-font.c
Hunk #1 FAILED at 55.
Hunk #2 FAILED at 709.
Hunk #3 FAILED at 1015.
Hunk #4 FAILED at 1026.
Hunk #5 FAILED at 1056.
Hunk #6 FAILED at 1067.
Hunk #7 FAILED at 1087.
Hunk #8 FAILED at 1102.
Hunk #9 FAILED at 1138.
Hunk #10 FAILED at 1186.
Hunk #11 FAILED at 1208.
Hunk #12 FAILED at 1634.
12 out of 12 hunks FAILED -- saving rejects to file src/cairo-ft-font.c.rej
Back to top
View user's profile Send private message
Occasus
Apprentice
Apprentice


Joined: 22 Feb 2005
Posts: 151
Location: Italia

PostPosted: Sat Jan 19, 2008 4:53 pm    Post subject: Reply with quote

Hello.
Could you tell me how to add the new overlay to layman?
I've appended
Code:
<overlay
      type = "svn"
      src  = "https://boniek.homelinux.org/svn/repos/font-overlay/trunk/"
      name = "font-overlay"
      contact = "???">

        <description>Font Overlay</description>
</overlay>

to /usr/portage/local/layman/overlays.xml

And manually created a dir called font-overlay with the content of the overlay in it.

Code:
% layman -l
* custom-kernels            [Subversion] (source: http://opensvn.csie.org/cu...)
* font-overlay              [Subversion] (source: https://boniek.homelinux.o...)
* gentoo-china              [Subversion] (source: http://gentoo-china-overla...)
* plan9                     [Subversion] (source: http://overlays.gentoo.org...)

% eix x11-libs/cairo
[U] x11-libs/cairo
     Available versions:  1.2.6 1.4.10 1.4.12 1.4.12[1] (~)1.4.14 [M](~)1.5.6 {X debug directfb doc glitz opengl svg test xcb}
     Installed versions:  1.4.12[1](00:14:20 31/12/07)(X glitz newspr opengl svg -debug -directfb -doc -xcb)
     Homepage:            http://cairographics.org/
     Description:         A vector graphics library with cross-device output support

[1] "china" /usr/portage/local/layman/gentoo-china

Why can't I get the updated version of cairo?
_________________
Guru Meditation
Back to top
View user's profile Send private message
kallee
n00b
n00b


Joined: 07 Sep 2004
Posts: 10

PostPosted: Sat Jan 19, 2008 7:44 pm    Post subject: Reply with quote

Occasus, you need to put the description of the overlay into a different file. The file overlays.xml is where layman saves installed overlays. Make a new file, say list.xml:

Code:
> cat /usr/portage/local/layman/list.xml
<?xml version="1.0" ?>
<overlays>
<overlay
      type = "svn"
      src  = "https://boniek.homelinux.org/svn/repos/font-overlay/trunk"
      name = "font-overlay"
      contact = "???">
        <description>Font Overlay</description>
</overlay>
</overlays>


Then use this file with -o switch. To see all available overlays:

Code:
> layman -o file:///usr/portage/local/layman/list.xml -L


To add the font-overlay:

Code:
> layman -o file:///usr/portage/local/layman/list.xml -a font-overlay


After that you need to add the PORTDIR_OVERLAY="/usr/portage/local/layman/font-overlay" to your /etc/make.conf and then emerge cairo.
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1287
Location: Netherlands

PostPosted: Sun Jan 20, 2008 3:58 am    Post subject: Reply with quote

I simple appended
Code:
file:///usr/portage/local/layman/font-overlay.xml
to "overlays :" in /etc/layman/layman.cfg ...

HTH
swimmer

PS: My font-overlay.xml looks like this:
Code:
<?xml version="1.0" ?>
<layman>
  <overlay
      type = "svn"
      src  = "https://boniek.homelinux.org/svn/repos/font-overlay/trunk/"
      contact = "boniek"
      name = "font-overlay">

    <link>
      https://boniek.homelinux.org/svn/repos/font-overlay/trunk/
    </link>
    <description>Just a simple overlay for the necessary packages to let fonts look good on LCD displays</description>

  </overlay>
</layman>
Back to top
View user's profile Send private message
Occasus
Apprentice
Apprentice


Joined: 22 Feb 2005
Posts: 151
Location: Italia

PostPosted: Sun Jan 20, 2008 4:09 pm    Post subject: Reply with quote

Thank you for the help!
_________________
Guru Meditation
Back to top
View user's profile Send private message
StephanX
n00b
n00b


Joined: 29 Oct 2007
Posts: 19
Location: Germany

PostPosted: Tue Jan 22, 2008 9:51 pm    Post subject: Reply with quote

swimmer wrote:
I simple appended
Code:
file:///usr/portage/local/layman/font-overlay.xml
to "overlays :" in /etc/layman/layman.cfg ...


Hmm, it first didn't work for me. Only when I changed the file /etc/layman/layman.cfg to include the following:
Code:
nocheck  : yes


Now, I can do a
Code:
layman -a font-overlay


and it works :lol:

Stephan
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 14, 15, 16 ... 28, 29, 30  Next
Page 15 of 30

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum