Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184133 - dev-tcltk/tkpng-0.7 (new ebuild)
Summary: dev-tcltk/tkpng-0.7 (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://sourceforge.net/projects/tkpng
Whiteboard:
Keywords: EBUILD, InVCS
Depends on:
Blocks: 260499 290698
  Show dependency tree
 
Reported: 2007-07-03 19:48 UTC by Martin Ošmera
Modified: 2010-04-02 06:55 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Functional ebuild. TkPng-0.7 (tkpng-0.7.ebuild,715 bytes, text/plain)
2007-07-03 19:52 UTC, Martin Ošmera
Details
Altered ebuild with patch line (tkpng-0.7-r1.ebuild,806 bytes, text/plain)
2009-05-29 10:32 UTC, Martin Fernau
Details
patchfile for tkpng-0.7-r1.ebuild (panic.patch,606 bytes, patch)
2009-05-29 10:32 UTC, Martin Fernau
Details | Diff
tkpng-0.9.ebuild (tkpng-0.9.ebuild,682 bytes, text/plain)
2009-07-11 15:34 UTC, David Voge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ošmera 2007-07-03 19:48:55 UTC
Dear developers,
please find attached tkpng-0.7.ebuild and patch it ...
It is lightweight library for loading and using PNG images in Tcl/Tk applications.
The configure script in source package require lastest BASH (listed in dependecies) otherwise is will result syntax error. I think this package is realy important, because Tk is unable to use PNG images (supports only GIF and some bitmaps). 
I suggest dev-tcltk/tkpng.

Sincerely Martin Ošmera <P16F87504SP@seznam.cz>.



P.S. I hope I am not wasting your/my time.
Comment 1 Martin Ošmera 2007-07-03 19:52:33 UTC
Created attachment 123813 [details]
Functional ebuild. TkPng-0.7
Comment 2 Federico Ferri (RETIRED) gentoo-dev 2008-05-28 21:43:48 UTC
which software depends on TkImg?

please also note that the package Img exists, and supports *way* more image formats than tkpng:  http://wiki.tcl.tk/Img
Comment 3 Vladimir 2009-02-27 08:52:13 UTC
net-im/coccinella-0.96.10 needs TkPng to run.
Comment 4 Vladimir 2009-02-27 11:48:29 UTC
"emerge" didn't want to install (due to compile-time errors) the "dev-tcltk/tkpng-0.7" package, until I've made some changes in the "./genericv/TkImgPNG.c" file.

To be exact:
--------------- Correction #1 -----------------
line 2010: "Tk_PhotoExpand(imageHandle, destX+pPNG->mWidth,destY+pPNG->mHeight);"

to

line 2010: "Tk_PhotoExpand_Panic(imageHandle, destX+pPNG->mWidth,destY+pPNG->mHeight);"

---------------- Correction #2 ----------------

line 2151: "Tk_PhotoPutBlock(imageHandle, &pPNG -> mBlock, destX, destY,
pPNG -> mBlock.width, pPNG -> mBlock.height, TK_PHOTO_COMPOSITE_SET);
"

to

line 2151: "Tk_PhotoPutBlock_Panic(imageHandle, &pPNG -> mBlock, destX, destY,
pPNG -> mBlock.width, pPNG -> mBlock.height, TK_PHOTO_COMPOSITE_SET);
"
------------------- End of corrections ---------------------

I don't know if I've done a right thing. Maybe someone alse knows? If so, then please put everything right. I'll appreciate any answer.
Comment 5 Martin Fernau 2009-05-29 10:30:31 UTC
I've put your changes together in a patch-file and altered the original ebuild. This makes life easier.

See my attachments
Comment 6 Martin Fernau 2009-05-29 10:32:02 UTC
Created attachment 192847 [details]
Altered ebuild with patch line
Comment 7 Martin Fernau 2009-05-29 10:32:30 UTC
Created attachment 192849 [details, diff]
patchfile for tkpng-0.7-r1.ebuild
Comment 8 David Voge 2009-07-11 15:34:33 UTC
Created attachment 197567 [details]
tkpng-0.9.ebuild
Comment 9 Vladimir 2009-11-20 15:41:21 UTC
  Is this package (dev-tcltk/tkpng) going to be included in the main Gentoo Portage tree?
Comment 10 Vladimir 2009-11-24 08:42:18 UTC
  Hello everyone!
  I've just learnt that few different versions of such packages as TkPng and TkTreeCtrl (and maybe some else) may be installed at the same time on the same machine. So why don't we use different SLOTs for different versions?
Comment 11 Vladimir 2009-12-27 16:20:00 UTC
(In reply to comment #10)
>   Hello everyone!
>   I've just learnt that few different versions of such packages as TkPng and
> TkTreeCtrl (and maybe some else) may be installed at the same time on the same
> machine. So why don't we use different SLOTs for different versions?
> 

Please, forget about this post. The necessary version of package is determined during run-time automatically, so there is no need for slots.

Still the question about adding TkPng and TkTreeCtrl into the main portage tree remains.
It would be nice to see these packages there, because they will provide Coccinella messenger (as an example) for amd64 (and other platforms, I believe), while it is available only for x86 at present.
Comment 12 Vladimir 2010-04-02 04:17:09 UTC
  Hello again!

(In reply to comment #11)
> Still the question about adding TkPng and TkTreeCtrl into the main portage tree
> remains.
> It would be nice to see these packages there, because they will provide
> Coccinella messenger (as an example) for amd64 (and other platforms, I
> believe), while it is available only for x86 at present.
> 
  I just wanted to say that since TkTreeCtrl is already present in the main Gentoo Portage tree, the only stumbling block on amd64 (and others) version of Coccinella way to Portage (and to users' computers) is TkPng. :)
  Clould someone please add this package to the Portage tree? The only way to have Coccinella running on amd64 machine now is to install TkPng from the local overlay. And I'm not sure every user knows at least what "local overlay" is. So it would be very nice to have Coccinella's dependencies in the Portage tree too.

Regards,
Vladimir.
Comment 13 Justin Lecher (RETIRED) gentoo-dev 2010-04-02 06:55:23 UTC
I added the package to the tree. Please check it out and report if it is not working.