From owner-freebsd-ports@freebsd.org Sun Aug 20 21:16:39 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6C8CDCBBD2 for ; Sun, 20 Aug 2017 21:16:39 +0000 (UTC) (envelope-from dereks@lifeofadishwasher.com) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 86F7274049 for ; Sun, 20 Aug 2017 21:16:39 +0000 (UTC) (envelope-from dereks@lifeofadishwasher.com) Received: by mail-qk0-x234.google.com with SMTP id o63so9709470qkb.3 for ; Sun, 20 Aug 2017 14:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifeofadishwasher.com; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HM9BFBC5Xwr1pJ+3IBU8C04lL3j0/+t8pQkod5DjR4k=; b=A0HW6SVuUvmWWISljAq0pN75p8ufXI4Q+KauFQxwnSV4ZROdWyoHUthwDrexFjc7Sm 2KpzCqxWjWFJ9t1d4qVICJPyzhQxTsLnXs6USXw5XESxWYHDufh8MiCDdqFQh0bAYWBL bRqw1DoOh+QFgZTIcoCAqcIREDhxifUhiCEgw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=HM9BFBC5Xwr1pJ+3IBU8C04lL3j0/+t8pQkod5DjR4k=; b=cWK1AqsLGQmAUjZy7KpLM3KQ8NxoNsyGVX993/X8zM+POnCQD8G1c6vnzqqulyIAiM zFwerTjkLiPNQhweqv16Wclklc0zI23paM/w6JtYBOtnl+mgJB19PFqbfjeadiqthep+ MgJ4yNS1U8iadyI84KO6DKsXvWrIcIvhG6bvHPl59BnQo7RntbrnH7V8fMPZkCEXF0Ud MM05pAxcwrddShwBamtFS7OdZlJJs3ec3NJZw5UboVLkbroNxVB0hfPYg/md1mtKhR1M exqkkVoDLoF2JBcXmrVnrRVxfn1zefEZ120cPdqvs3ezxlMxXhGaNWkYa/yY78GlV69z 8D5Q== X-Gm-Message-State: AHYfb5hzl6aFyHZSkxSEgh8CK8IHTbdNydNiCiydp5ARoRZpo7lL/woL V3/iiZV12mQLkvnDeqE= X-Received: by 10.55.151.67 with SMTP id z64mr20021515qkd.5.1503263798567; Sun, 20 Aug 2017 14:16:38 -0700 (PDT) Received: from lifeofadishwasher.com ([2601:547:901:37b7:4637:e6ff:fead:11c4]) by smtp.gmail.com with ESMTPSA id z199sm6778749qka.94.2017.08.20.14.16.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2017 14:16:37 -0700 (PDT) Received: by lifeofadishwasher.com (sSMTP sendmail emulation); Sun, 20 Aug 2017 17:16:36 -0400 Date: Sun, 20 Aug 2017 17:16:36 -0400 From: Derek Schrock To: lbartoletti@tuxfamily.org Cc: freebsd-ports@freebsd.org Subject: Re: Add gitlab.com into bsd.sites.mk Message-ID: <20170820211636.GA44994@ircbsd.lifeofadishwasher.com> Mail-Followup-To: lbartoletti@tuxfamily.org, freebsd-ports@freebsd.org References: <3e39194c-5743-3a76-f6a5-fa959240bdf1@tuxfamily.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e39194c-5743-3a76-f6a5-fa959240bdf1@tuxfamily.org> User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Aug 2017 21:16:39 -0000 On Sat, Aug 19, 2017 at 04:28:01PM EDT, L.Bartoletti wrote: > Hello, > > I would suggest to add gitlab.com into bsd.sites.mk > > Since, I think I am not competent to propose a patch, I ask for help. > > I have ports to create where the sources are only available on GitLab. > Like some other ports (audio/midi-matrix-lv2, audio/moony-lv2, etc.) I > can fetch source using a direct link. But, it may be nice to have this > possibility. > > As I can see, it can be similar (and maybe easier) than github. > > Archive can be dowload by this URL: > https://gitlab.com/${GL_ACCOUNT}/${GL_PROJECT}/repository/${GL_TAGNAME}/archive.${EXTRACT_SUFX} > > ${EXTRACT_SUFX} can be zip, tar.gz, tar.bz2 and tar > > Is anyone already working on it or do you want to do it with me? Assuming gitlab remains API compatible with github. I'm wondering if gitlab.com, github.com, and gitlab hosted site support can be merged into a single set of vars. The main difference between gitlab, gitlab hosted, and github.com would be the domain and a set of master sites? Everything else can be shared. If you look at www/tt-rss we're using almost the same URL from above as the master site. This is a gitlab hosted repo. Having some type of control var to tell ports of the provider (github GH, gitlab.com GL, gitlab hosted GLH) would control the master site values. ... USE_GITHUB= yes # Use github.com and set master sites according ... USE_GITLAB= yes # Use gitlab.com and set master sites according ... USE_GITLAB= example.com/path/to/base ... # Use gitlab hosted use URLish as master site Or a single var ... USE_GITHUB= {yes|GH|GL|example.com/path/to/base} ... If set ports would expect the same GH_* vars from the Porters handbook Table 5.5