Skip to content

Commit 1d31b38

Browse files
committed
Initial debianization
1 parent c14b142 commit 1d31b38

22 files changed

Lines changed: 4047 additions & 0 deletions

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ composer.phar
77
/nbproject/private/
88
/composer.lock
99
/.build/
10+
/debian/.debhelper/
11+
/debian/php-vitexsoftware-ease-html-widgets/
12+
/debian/php-vitexsoftware-ease-html-widgets.substvars
13+
/debian/debhelper-build-stamp
14+
/debian/files

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# VitexSoftware Ease HTML Widgets
2+
3+
Welcome to the VitexSoftware Ease HTML Widgets project! This repository contains a collection of reusable HTML widgets for PHP applications.
4+
5+
## Table of Contents
6+
7+
- [Introduction](#introduction)
8+
- [Installation](#installation)
9+
- [Usage](#usage)
10+
- [Contributing](#contributing)
11+
- [License](#license)
12+
13+
## Introduction
14+
15+
VitexSoftware Ease HTML Widgets is a library designed to simplify the creation and management of HTML widgets in PHP applications. It provides a set of pre-built widgets that can be easily integrated into your projects.
16+
17+
## Installation
18+
19+
To install the library, you can use Composer:
20+
21+
```bash
22+
composer require vitexsoftware/ease-html-widgets
23+
```
24+
25+
## Usage
26+
27+
Here is a basic example of how to use one of the widgets:
28+
29+
```php
30+
require '../vendor/autoload.php';
31+
32+
use \VitexSoftware\Ease\Html\Widgets\SandClock();
33+
34+
$widget = new SandClock();
35+
echo $widget;
36+
```
37+
38+
It gives you nice SandClock
39+
40+
![SandClock Widget](sandclock.svg?raw=true)
41+
42+
43+
## Contributing
44+
45+
We welcome contributions! Please read our [contributing guidelines](CONTRIBUTING.md) to get started.
46+
47+
## License
48+
49+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

debian/Jenkinsfile

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#!groovy
2+
3+
String[] distributions = ['debian:bullseye', 'debian:bookworm', 'debian:trixie', 'ubuntu:focal', 'ubuntu:jammy', 'ubuntu:noble']
4+
5+
String vendor = 'vitexsoftware'
6+
String distribution = ''
7+
//String distroFamily = ''
8+
String distroCodename = ''
9+
String ver = ''
10+
11+
properties([
12+
copyArtifactPermission('*')
13+
])
14+
node() {
15+
ansiColor('xterm') {
16+
stage('SCM Checkout') {
17+
checkout scm
18+
}
19+
}
20+
}
21+
22+
distributions.each {
23+
distribution = it
24+
25+
println "Dist:" + distribution
26+
27+
def dist = distribution.split(':')
28+
// distroFamily = dist[0]
29+
distroCodename = dist[1]
30+
31+
def buildImage = ''
32+
33+
node {
34+
ansiColor('xterm') {
35+
stage('Checkout ' + distribution) {
36+
buildImage = docker.image(vendor + '/' + distribution)
37+
sh 'git checkout debian/changelog'
38+
def VERSION = sh (
39+
script: 'dpkg-parsechangelog --show-field Version',
40+
returnStdout: true
41+
).trim()
42+
ver = VERSION + '~' + distroCodename + '~' + env.BUILD_NUMBER
43+
}
44+
stage('Build ' + distribution) {
45+
buildImage.inside {
46+
sh 'dch -b -v ' + ver + ' "' + env.BUILD_TAG + '"'
47+
sh 'sudo apt-get update --allow-releaseinfo-change'
48+
sh 'sudo chown jenkins:jenkins ..'
49+
sh 'debuild-pbuilder -i -us -uc -b'
50+
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; for deb in $(cat debian/files | awk \'{print $1}\'); do mv "../$deb" $WORKSPACE/dist/debian/; done'
51+
}
52+
}
53+
54+
stage('Test ' + distribution) {
55+
buildImage.inside {
56+
def debconf_debug = 0 //Set to "5" or "developer" to debug debconf
57+
sh 'cd $WORKSPACE/dist/debian/ ; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz; cd $WORKSPACE'
58+
sh 'echo "deb [trusted=yes] file://///$WORKSPACE/dist/debian/ ./" | sudo tee /etc/apt/sources.list.d/local.list'
59+
sh 'sudo apt-get update --allow-releaseinfo-change'
60+
sh 'echo "INSTALATION"'
61+
sh 'IFS="\n\b"; for package in `ls $WORKSPACE/dist/debian/ | grep .deb | awk -F_ \'{print \$1}\'` ; do echo -e "${GREEN} installing ${package} on `lsb_release -sc` ${ENDCOLOR} " ; sudo DEBIAN_FRONTEND=noninteractive DEBCONF_DEBUG=' + debconf_debug + ' apt-get -y install $package ; done;'
62+
stash includes: 'dist/**', name: 'dist-' + distroCodename
63+
}
64+
}
65+
stage('Copy artifacts ' + distribution ) {
66+
buildImage.inside {
67+
sh 'mv $WORKSPACE/dist/debian/*.deb $WORKSPACE'
68+
}
69+
}
70+
}
71+
}
72+
}
73+

debian/README.Debian

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
php-vitexsoftware-ease-html-widgets for Debian
2+
3+
Please edit this to provide information specific to
4+
this php-vitexsoftware-ease-html-widgets Debian package.
5+
6+
(Automatically generated by debmake Version 4.4.0)
7+
8+
-- Vítězslav Dvořák <info@vitexsoftware.cz> Sat, 19 Oct 2024 11:12:51 +0200

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
php-vitexsoftware-ease-html-widgets (0.1.0) UNRELEASED; urgency=low
2+
3+
* Initial release. Closes: #nnnn
4+
<nnnn is the bug number of your ITP>
5+
6+
-- Vítězslav Dvořák <info@vitexsoftware.cz> Sat, 19 Oct 2024 11:12:51 +0200

debian/clean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# You must remove unused comment lines for the released package.

debian/composer.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "deb/ease-html-widgets",
3+
"description": "Addons for PHP Framework (debianized)",
4+
"version": "1.2",
5+
"authors": [
6+
{
7+
"name": "Vítězslav Dvořák",
8+
"email": "info@vitexsoftware.cz",
9+
"homepage": "http://v.s.cz/"
10+
}
11+
],
12+
"autoload": {
13+
"psr-4": {
14+
"Ease\\Html\\Widgets\\": "Widgets"
15+
}
16+
},
17+
"require": {
18+
"deb/ease-html": "*"
19+
},
20+
"repositories": [
21+
{
22+
"type": "path",
23+
"url": "/usr/share/php/EaseCore"
24+
},
25+
{
26+
"type": "path",
27+
"url": "/usr/share/php/EaseHtml"
28+
}
29+
],
30+
"type": "library",
31+
"homepage": "https://github.com/VitexSoftware/php-vitexsoftware-ease-html-widgets",
32+
"license": "MIT"
33+
}

debian/control

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Source: php-vitexsoftware-ease-html-widgets
2+
Build-Depends: debhelper (>= 7.0.50~), phpdocumentor
3+
Standards-Version: 4.3.0
4+
Maintainer: Vítězslav Dvořák <info@vitexsoftware.cz>
5+
Uploaders: Vitex <vitex@hippy.cz>
6+
Priority: optional
7+
Homepage: https://github.com/VitexSoftware/php-vitexsoftware-ease-html-widgets
8+
9+
Package: php-vitexsoftware-ease-html-widgets
10+
Depends: ${misc:Depends},php-vitexsoftware-ease-html
11+
Replaces: php-vitexsoftware-ease-bricks
12+
Architecture: all
13+
Section: web
14+
Priority: optional
15+
Description: Simple PHP framework Bricks
16+
Addon components for EasePHP Framework
17+
18+
Package: php-vitexsoftware-ease-html-widgets-doc
19+
Depends: ${misc:Depends},
20+
Suggests: www-browser
21+
Architecture: all
22+
Section: doc
23+
Priority: optional
24+
Description: Ease Html Widgets documentation
25+
ApiGen html documentation for ease-framework php library

0 commit comments

Comments
 (0)