Solved alarm-clock-applet

D

Deleted member 48958

Guest
alarm-clock-applet -- http://alarm-clock.pseudoberries.com/
it's minimalistic alarm clock, you can successfully build it and install with FreeBSD 10.2-RELEASE:
download alarm-clock-applet-0.3.4.tar.gz,
extract it and
Code:
./configure
gmake
sudo gmake install
it tested and work good. IMO it must be in ports and pkgs.
Снимок экрана от 2016-03-18 04-43-56.png
 
Last edited by a moderator:
well, may be I'll try, but I've never done this kind of stuff...
so if someone with experience could do it, it will be good :)
 
Just create a basic port and post it here. I'm sure there are people willing to help out. If you have any specific questions don't hesitate to ask.
 
ok, i'll try shortly.
if I' ll understand how to do it,
I will create port for GtkHash also,
nice app for computing checksums, that works fine on FreeBSD:
download gtkhash-0.7.0.tar.xz, extract and
Code:
sh autogen.sh
./configure
gmake
sudo gmake install
if I'll encounter some issues -- i'll post here.
 
Last edited by a moderator:
ok, I create Makefile with
Code:
...
GNU_CONFIGURE=  yes
USES=           gmake
...
in it. so make should run ./configure && gmake,
all is ok, but it doesn't want to install (it says that it was installed, but it is not true).
Снимок экрана от 2016-03-20 15-46-54.png

so i need somehow tell to make install to run gmake install?
 
yes. the problem was with my pkg-plist.
 
i got it, all work fine now! :) thanks!
 
got one more problem...

i can install this port succesfuly, app starts, it works... but it has NO icons.
but icons ARE installed (to /usr/local/share/icons/hicolor/*/apps)

but when remove 'port' version and install it from original tarrbal -- icons are avaible.

i even made
Code:
cd /usr/ports/deskutils/alarm-clock-applet
make install clean
cd
find /* > packagelist.alarm-PORTS
cd /usr/ports/deskutils/alarm-clock-applet
make deinstall
cd /usr/home/iluxa/alarm-clock-applet-0.3.4
./configure && gmake && gmake install
cd
find /* > packagelist.alarm-TARBALL
diff packagelist.alarm-PORTS packagelist.alarm-TARBALL > packagelist.alarm-WTF

then I open "packagelist.alarm-WTF" but there is NO DIFFERENCE.

any suggestiions?

installed from tarball
Снимок экрана от 2016-03-20 17-53-16.png


installed from port
Снимок экрана от 2016-03-20 17-54-51.png
 
It would be easier if you upload the port somewhere, so this is just a guess. Try adding INSTALLS_ICONS=yes to the port Makefile. It runs gtk-update-icon-cache after installing the port which might be needed for the icon to register.
 
you are right! thanks! :D now all works fine :cool:
 
Can it be run from a custom directory telling it where the ports directory is, or must it be from the port's trees directory? I'm wondering if the working on application must be separated from the rest of the port's tree.
 
Yes, I can install it from my home directory also.
(if I don't understand your question correctly,
try to say it with another words. my English is very "basic" =] )
 
Last edited by a moderator:
If you want to include the "official" port tree you should cleanup first. The ports-mgmt/portlint will help you :)
Code:
$  portlint
WARN: Makefile: no ftp/http mirror in MASTER_SITES for users behind a proxy.
FATAL: Makefile: extra item "GNU_CONFIGURE" placed in the MAINTAINER section.
FATAL: Makefile: extra item "USES" placed in the MAINTAINER section.
FATAL: Makefile: extra item "INSTALLS_ICONS" placed in the MAINTAINER section.
WARN: Makefile: COMMENT exceeds 70 characters limit.
WARN: Makefile: Consider defining LICENSE.
WARN: Makefile: seems to have unnecessary blank lines at the last part.
3 fatal errors and 4 warnings found.
 
"fatal errors" fixed.
where can i write about license? got it.
Code:
LICENSE=  GPLv2


i got only one warning now, what can i do?
it seems that i cannot download it from http ot ftp, or may be i'm wrong? https://launchpad.net/alarm-clock/+download

Снимок экрана от 2016-03-20 21-58-32.png


or it's ok?
 
Other ports that download from Launchpad (e.g. multimedia/openshot) just use http:// which seems to work. Other ports seem to just ignore that portlint warning. You're probably fine.

The port you've uploaded here does not declare build and run dependencies. Don't forget to add them or building packages in Poudriere/Synth or new installations will fail.
 
Thanks. Just http:// is ok. no more warnings.

Poudriere/Synth... I installed it, but when I run it, Poudriere says:
Code:
Error: ZPOOL variable is not set
and Synth:
Code:
Please change the current directory; Synth is unable to launch from here.
But when I run it from home:
Code:
Invalid port origin: test
 
It will be very cool, if you could tell me what command I need to enter to view a dependencies list,
I know, it's very ubuntu way =) but I have read to much books for today and want to finish with it as fast as I can)
 
The readelf() command will help you.
Code:
$ readelf -d /usr/local/bin/fluxbox | grep Shared
0x0000000000000001 (NEEDED)  Shared library: [libfontconfig.so.1]
0x0000000000000001 (NEEDED)  Shared library: [libfreetype.so.6]
0x0000000000000001 (NEEDED)  Shared library: [libfribidi.so.0]
0x0000000000000001 (NEEDED)  Shared library: [libXrandr.so.2]
0x0000000000000001 (NEEDED)  Shared library: [libXext.so.6]
0x0000000000000001 (NEEDED)  Shared library: [libXft.so.2]
0x0000000000000001 (NEEDED)  Shared library: [libXinerama.so.1]
0x0000000000000001 (NEEDED)  Shared library: [libXpm.so.4]
0x0000000000000001 (NEEDED)  Shared library: [libX11.so.6]
0x0000000000000001 (NEEDED)  Shared library: [libXrender.so.1]
0x0000000000000001 (NEEDED)  Shared library: [librt.so.1]
0x0000000000000001 (NEEDED)  Shared library: [libm.so.5]
0x0000000000000001 (NEEDED)  Shared library: [libc++.so.1]
0x0000000000000001 (NEEDED)  Shared library: [libcxxrt.so.1]
0x0000000000000001 (NEEDED)  Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED)  Shared library: [libc.so.7]

But the simpliest method: check README! :)
Requirements
------------

You need at least:

glib-2.16.0
gtk-2.12.0
gconf-2.0
gio-2.0
gnome-icon-theme
gstreamer-1.0
libnotify-0.4.1
libxml-2.0
unique-1.0


Optional dependencies:

appindicator >= 0.0.7
 
uzsolt said:
Requirements
------------

You need at least:

glib-2.16.0
gtk-2.12.0
gconf-2.0
gio-2.0
gnome-icon-theme
gstreamer-1.0
libnotify-0.4.1
libxml-2.0
unique-1.0


Optional dependencies:

appindicator >= 0.0.7
i found this packages available:

glib
gtk2
gconf2
gnome-icon-theme
gstreamer1
libnotify
libxml2
unique

so no "gio" (maybe it's part of "glib"?) and "appindicator".

where do i need specify those packages?
like
Code:
LIB_DEPENDS=
RUN_DEPENDS=
in Makefile?
 
Last edited by a moderator:
I've already read this chapter, but some moments still are not clear for me,
maybe i'm misunderstand some engish words, or i'm just stupid =]
any way I'll try one more time tomorrow later today with clear head.
after I'll post my Makefile here.
 
Back
Top