Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
insync-bin-1.3.16.ebuild: request for review
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Iguana8649
n00b
n00b


Joined: 27 Jan 2005
Posts: 37

PostPosted: Thu Jun 08, 2017 12:10 pm    Post subject: insync-bin-1.3.16.ebuild: request for review Reply with quote

Hello!

I picked insync-bin-1.3.8.ebuild and tried to update to 1.3.16.

$ diff -w insync-bin-1.3.8.ebuild insync-bin-1.3.16.ebuild
Code:

11,12c11,13
< MAGIC="36087"
< MAIN_INSTALLER_STRING="http://s.insynchq.com/builds/insync-${PV}.${MAGIC}-fc21"
---
> MAGIC="36155"
> MAIN_INSTALLER_STRING="http://s.insynchq.com/builds/insync-${PV}.${MAGIC}-fc24"
> #https://d2t3ff60b2tol4.cloudfront.net/builds/insync-1.3.16.36155-fc25.x86_64.rpm
19c20
< DEPEND="<dev-libs/libevent-2.1"
---
> DEPEND=">dev-libs/libevent-2.0"



The end result being:

$ cat insync-bin-1.3.16.ebuild
Code:

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit rpm

DESCRIPTION="Advanced cross-platform Google Drive client"
HOMEPAGE="https://www.insynchq.com/"
MAGIC="36155"
MAIN_INSTALLER_STRING="http://s.insynchq.com/builds/insync-${PV}.${MAGIC}-fc24"
#https://d2t3ff60b2tol4.cloudfront.net/builds/insync-1.3.16.36155-fc25.x86_64.rpm
SRC_URI="
        x86?      ( ${MAIN_INSTALLER_STRING}.i686.rpm )
        amd64?    ( ${MAIN_INSTALLER_STRING}.x86_64.rpm )"

SLOT="0"
KEYWORDS="-* ~x86 ~amd64"
DEPEND=">dev-libs/libevent-2.0"
RDEPEND="${DEPEND}"

src_unpack() {
        rpm_src_unpack ${A}
        mkdir -p "${S}" # Without this src_prepare fails
}

src_install() {
        cp -pPR "${WORKDIR}"/{usr,etc} "${D}"/ || die "Installation failed"

        echo "SEARCH_DIRS_MASK=\"/usr/lib*/insync\"" > "${T}/70${PN}" || die
        insinto "/etc/revdep-rebuild" && doins "${T}/70${PN}" || die
}

pkg_postinst() {
        elog "To automatically start insync add 'insync start' to your session"
        elog "startup scripts. GNOME users can also choose to enable"
        elog "the insync extension via gnome-tweak-tool."
}



Can somebody take a look, specially at my libevent change, which was a complete gamble? :)

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
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