Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680180 - app-office/clockify-1.4.2 - The only truly free time tracker for teams
Summary: app-office/clockify-1.4.2 - The only truly free time tracker for teams
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: https://clockify.me/
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2019-03-13 02:22 UTC by Sergey Glazyrin
Modified: 2020-09-10 20:18 UTC (History)
1 user (show)

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


Attachments
clockify-1.4.2.ebuild (clockify-1.4.2.ebuild,1.05 KB, text/plain)
2019-03-13 02:25 UTC, Sergey Glazyrin
Details
clockify-desktop-r1.patch (clockify-desktop-r1.patch,417 bytes, patch)
2019-03-13 02:25 UTC, Sergey Glazyrin
Details | Diff
metadata.xml (metadata.xml,409 bytes, application/xml)
2019-03-13 02:26 UTC, Sergey Glazyrin
Details
9999 version of clockify cause they distribute package without version (clockify-9999.ebuild,1.08 KB, text/plain)
2020-09-10 20:17 UTC, Sergey Glazyrin
Details
use tabs instead of spaces. (clockify-9999.ebuild,1.07 KB, text/plain)
2020-09-10 20:18 UTC, Sergey Glazyrin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Glazyrin 2019-03-13 02:22:24 UTC
Hi!

Please find attached clockify-1.4.2.ebuild and a patch so that it fixes application icon for X system

Install Clockify on your computer and track time from your desktop.

Sergey
Comment 1 Sergey Glazyrin 2019-03-13 02:25:02 UTC
Created attachment 568932 [details]
clockify-1.4.2.ebuild

here is an ebuild
Comment 2 Sergey Glazyrin 2019-03-13 02:25:58 UTC
Created attachment 568934 [details, diff]
clockify-desktop-r1.patch

it is a patch for desktop icon
Comment 3 Sergey Glazyrin 2019-03-13 02:26:34 UTC
Created attachment 568936 [details]
metadata.xml

here is a metadata for the package.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-13 08:01:00 UTC
Comment on attachment 568932 [details]
clockify-1.4.2.ebuild

># Copyright 1999-2018 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
>
>EAPI=6

Why not EAPI=7?

>
>inherit eutils unpacker
>
># Binary only distribution
>QA_PREBUILT="*"
>
>DESCRIPTION="Install Clockify on your computer and track time from your desktop."

1. PN should not appear in DESCRIPTION
2. Should not end with a dot
3. Does not match upstream oneliner from website

>HOMEPAGE="https://clockify.me/"
>SRC_URI="
>	amd64? ( https://clockify.me/downloads/Clockify_Setup_1_4_2.deb -> ${P}_x86_64.rpm )
>"
>LICENSE="CLOCKIFY"
>SLOT="0"
>KEYWORDS="~amd64"
>
>S=${WORKDIR}
>PATCHES=( "${FILESDIR}/${PN}-desktop-r1.patch" )
>
>RDEPEND="
>	gnome-base/gconf
>	dev-libs/libappindicator
>	x11-libs/libXtst
>	dev-libs/nss
>	x11-libs/libXScrnSaver
>"
>
>src_unpack(){
>    unpack_deb ${A}
>}
>
>src_install() {
>   
>    insinto /usr/
>    doins -r usr/share/
>
>    insinto /
>    doins -r opt/
>	fperms 0755 /opt/Clockify/clockify
>	dosym /opt/Clockify/clockify /usr/local/bin/clockify

/usr/local should not be used for portage-installed packages. Either put the symlink in /usr/bin or set up a wrapper script or add the path to PATH through env.d.

>
>	domenu usr/share/applications/clockify.desktop
>	doicon usr/share/icons/hicolor/64x64/apps/clockify.png
>}

You're installing a desktop entry and icon, so you should run xdg_icon_cache_update and xdg_desktop_database_update in these functions:

>pkg_postrm() {
>    rm -f /usr/local/bin/clockify    

1. Whitespace at end of line.
2. The symlink is already registered as part of the installed package so you should not need to remove it manually.

>}
>
>pkg_postinst() {
>	dosym /opt/Clockify/clockify /usr/local/bin/clockify


You already do this in src_install().

>}
Comment 5 Sergey Glazyrin 2019-03-18 13:26:26 UTC
Hi, currently busy, will fix in few days
Comment 6 Sergey Glazyrin 2019-05-24 23:14:15 UTC
Comment on attachment 568932 [details]
clockify-1.4.2.ebuild

 Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit eutils unpacker desktop xdg-utils

# Binary only distribution
QA_PREBUILT="*"

DESCRIPTION="The only truly free time tracker for teams"
HOMEPAGE="https://clockify.me/"
SRC_URI="
    amd64? ( https://clockify.me/downloads/Clockify_Setup_1_4_2.deb -> ${P}_x86_64.rpm )
"
LICENSE="CLOCKIFY"
SLOT="0"
KEYWORDS="~amd64"

S=${WORKDIR}
PATCHES=( "${FILESDIR}/${PN}-desktop-r1.patch" )

RDEPEND="
    gnome-base/gconf
    dev-libs/libappindicator
    x11-libs/libXtst
    dev-libs/nss
    x11-libs/libXScrnSaver
"

src_unpack(){
    unpack_deb ${A}
}

src_install() {

    insinto /usr/
    doins -r usr/share/

    insinto /
    doins -r opt/
    fperms 0755 /opt/Clockify/clockify
    dosym /opt/Clockify/clockify /usr/bin/clockify

    domenu usr/share/applications/clockify.desktop
    doicon usr/share/icons/hicolor/64x64/apps/clockify.png
}

pkg_postinst() {
    xdg_icon_cache_update
    xdg_desktop_database_update
}

pkg_postrm() {
    xdg_icon_cache_update
    xdg_desktop_database_update
}
Comment 7 Sergey Glazyrin 2019-05-24 23:14:50 UTC
Comment on attachment 568936 [details]
metadata.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
    <maintainer type="person">
        <email>sergey.glazyrin.dev@gmail.com</email>
        <name>Sergey Glazyrin</name>
    </maintainer>
    <longdescription lang="en">
        Install Clockify on your computer and track time from your desktop.
    </longdescription>
</pkgmetadata>
Comment 8 Sergey Glazyrin 2019-05-24 23:15:52 UTC
(In reply to Jeroen Roovers from comment #4)


hi, thank you for your notes, it is done
Comment 9 Sergey Glazyrin 2020-05-29 15:37:09 UTC
hi @Jeroen
Could you please let me know your thoughts ?
Comment 10 Sergey Glazyrin 2020-09-10 20:17:18 UTC
Created attachment 659440 [details]
9999 version of clockify cause they distribute package without version

This is new version of clockify.
Comment 11 Sergey Glazyrin 2020-09-10 20:18:40 UTC
Created attachment 659442 [details]
use tabs instead of spaces.