summaryrefslogtreecommitdiff
path: root/x11/libunique
AgeCommit message (Collapse)AuthorFilesLines
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-13/+6
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2009-03-04Update libunique to 1.0.6.jmcneill2-6/+6
Changes: Copy the startup-id string, not just the pointer The fix for the memory leak of commit fd7aaf0e exposed the fact that we did not copy the startup notification id across messages, but we simply stored the pointer. This commit should fix the double-free errors happening to applications using libunique.
2008-12-18Import libunique-1.0.4 as x11/libunique.ahoka6-0/+110
Unique is a library for writing single instance application. If you launch a single instance application twice, the second instance will either just quit or will send a message to the running instance. Unique makes it easy to write this kind of applications, by providing a base class, taking care of all the IPC machinery needed to send messages to a running instance, and also handling the startup notification side. Unique aims to replace the BaconMessageConnection code that has been copied by many projects and the code using Bonobo and D-Bus.